Commit 1dec091d authored by Peter Eisentraut's avatar Peter Eisentraut
parent 67859742
...@@ -376,7 +376,7 @@ static void JumbleRowMarks(pgssJumbleState *jstate, List *rowMarks); ...@@ -376,7 +376,7 @@ static void JumbleRowMarks(pgssJumbleState *jstate, List *rowMarks);
static void JumbleExpr(pgssJumbleState *jstate, Node *node); static void JumbleExpr(pgssJumbleState *jstate, Node *node);
static void RecordConstLocation(pgssJumbleState *jstate, int location); static void RecordConstLocation(pgssJumbleState *jstate, int location);
static char *generate_normalized_query(pgssJumbleState *jstate, const char *query, static char *generate_normalized_query(pgssJumbleState *jstate, const char *query,
int query_loc, int *query_len_p, int encoding); int query_loc, int *query_len_p);
static void fill_in_constant_lengths(pgssJumbleState *jstate, const char *query, static void fill_in_constant_lengths(pgssJumbleState *jstate, const char *query,
int query_loc); int query_loc);
static int comp_location(const void *a, const void *b); static int comp_location(const void *a, const void *b);
...@@ -1336,8 +1336,7 @@ pgss_store(const char *query, uint64 queryId, ...@@ -1336,8 +1336,7 @@ pgss_store(const char *query, uint64 queryId,
LWLockRelease(pgss->lock); LWLockRelease(pgss->lock);
norm_query = generate_normalized_query(jstate, query, norm_query = generate_normalized_query(jstate, query,
query_location, query_location,
&query_len, &query_len);
encoding);
LWLockAcquire(pgss->lock, LW_SHARED); LWLockAcquire(pgss->lock, LW_SHARED);
} }
...@@ -3235,7 +3234,7 @@ RecordConstLocation(pgssJumbleState *jstate, int location) ...@@ -3235,7 +3234,7 @@ RecordConstLocation(pgssJumbleState *jstate, int location)
*/ */
static char * static char *
generate_normalized_query(pgssJumbleState *jstate, const char *query, generate_normalized_query(pgssJumbleState *jstate, const char *query,
int query_loc, int *query_len_p, int encoding) int query_loc, int *query_len_p)
{ {
char *norm_query; char *norm_query;
int query_len = *query_len_p; int query_len = *query_len_p;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment