mirror of
https://github.com/postgres/postgres.git
synced 2025-11-04 20:11:56 +03:00
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
This commit is contained in:
@@ -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.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user