40 #define JUMBLE_SIZE 1024
50 const unsigned char *item,
Size size);
64 int query_location = *location;
68 if (query_location >= 0)
70 Assert(query_location <= strlen(query));
71 query += query_location;
74 query_len = strlen(query);
76 Assert(query_len <= strlen(query));
82 query_len = strlen(query);
90 query++, query_location++, query_len--;
94 *location = query_location;
136 if (query->
queryId == UINT64CONST(0))
137 query->
queryId = UINT64CONST(1);
178 if (queryId == UINT64CONST(0))
179 queryId = UINT64CONST(2);
191 unsigned char *jumble = jstate->
jumble;
209 memcpy(jumble, &start_hash,
sizeof(start_hash));
210 jumble_len =
sizeof(start_hash);
213 memcpy(jumble + jumble_len, item, part_size);
214 jumble_len += part_size;
225 #define APP_JUMB(item) \
226 AppendJumble(jstate, (const unsigned char *) &(item), sizeof(item))
227 #define APP_JUMB_STRING(str) \
228 AppendJumble(jstate, (const unsigned char *) (str), strlen(str) + 1)
331 foreach(lc, rowMarks)
564 foreach(temp, caseexpr->
args)
811 foreach(temp, (
List *) node)
817 foreach(temp, (
List *) node)
static Datum hash_any_extended(const unsigned char *k, int keylen, uint64 seed)
Assert(fmt[strlen(fmt) - 1] !='\n')
void * repalloc(void *pointer, Size size)
#define IsA(nodeptr, _type_)
#define castNode(_type_, nodeptr)
#define lfirst_node(type, lc)
void check_stack_depth(void)
#define DatumGetUInt64(X)
JumbleState * JumbleQuery(Query *query, const char *querytext)
static void AppendJumble(JumbleState *jstate, const unsigned char *item, Size size)
static uint64 compute_utility_query_id(const char *str, int query_location, int query_len)
static void RecordConstLocation(JumbleState *jstate, int location)
#define APP_JUMB_STRING(str)
const char * CleanQuerytext(const char *query, int *location, int *len)
static void JumbleRangeTable(JumbleState *jstate, List *rtable)
static void JumbleRowMarks(JumbleState *jstate, List *rowMarks)
static void JumbleQueryInternal(JumbleState *jstate, Query *query)
static void JumbleExpr(JumbleState *jstate, Node *node)
static bool IsQueryIdEnabled(void)
bool scanner_isspace(char ch)
BoolTestType booltesttype
CTEMaterialize ctematerialized
JsonReturning * returning
int highest_extern_param_id
NullTestType nulltesttype
OnConflictExpr * onConflict
struct TableSampleClause * tablesample
LockClauseStrength strength
LockWaitPolicy waitPolicy