aboutsummaryrefslogtreecommitdiff
path: root/src/backend/nodes/queryjumblefuncs.c
diff options
context:
space:
mode:
authorAlexander Korotkov <akorotkov@postgresql.org>2024-04-10 02:07:34 +0300
committerAlexander Korotkov <akorotkov@postgresql.org>2024-04-10 02:28:09 +0300
commitff9f72c68f678ded340b431c3e280fe56644a3e7 (patch)
tree8e6e8e211c2451709c2efb76a49d7146cb899d58 /src/backend/nodes/queryjumblefuncs.c
parent5a15bdea3b791223b4cc708d4953a0086f4332a6 (diff)
downloadpostgresql-ff9f72c68f678ded340b431c3e280fe56644a3e7.tar.gz
postgresql-ff9f72c68f678ded340b431c3e280fe56644a3e7.zip
revert: Transform OR clauses to ANY expression
This commit reverts 72bd38cc99 due to implementation and design issues. Reported-by: Tom Lane Discussion: https://postgr.es/m/3604469.1712628736%40sss.pgh.pa.us
Diffstat (limited to 'src/backend/nodes/queryjumblefuncs.c')
-rw-r--r--src/backend/nodes/queryjumblefuncs.c27
1 files changed, 0 insertions, 27 deletions
diff --git a/src/backend/nodes/queryjumblefuncs.c b/src/backend/nodes/queryjumblefuncs.c
index de29d51c631..be823a7f8fa 100644
--- a/src/backend/nodes/queryjumblefuncs.c
+++ b/src/backend/nodes/queryjumblefuncs.c
@@ -141,33 +141,6 @@ JumbleQuery(Query *query)
return jstate;
}
-JumbleState *
-JumbleExpr(Expr *expr, uint64 *exprId)
-{
- JumbleState *jstate = NULL;
-
- Assert(exprId != NULL);
-
- jstate = (JumbleState *) palloc(sizeof(JumbleState));
-
- /* Set up workspace for query jumbling */
- jstate->jumble = (unsigned char *) palloc(JUMBLE_SIZE);
- jstate->jumble_len = 0;
- jstate->clocations_buf_size = 32;
- jstate->clocations = (LocationLen *)
- palloc(jstate->clocations_buf_size * sizeof(LocationLen));
- jstate->clocations_count = 0;
- jstate->highest_extern_param_id = 0;
-
- /* Compute query ID */
- _jumbleNode(jstate, (Node *) expr);
- *exprId = DatumGetUInt64(hash_any_extended(jstate->jumble,
- jstate->jumble_len,
- 0));
-
- return jstate;
-}
-
/*
* Enables query identifier computation.
*