Skip to content

Commit 1dec091

Browse files
committed
1 parent 6785974 commit 1dec091

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

contrib/pg_stat_statements/pg_stat_statements.c

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ static void JumbleRowMarks(pgssJumbleState *jstate, List *rowMarks);
376376
static void JumbleExpr(pgssJumbleState *jstate, Node *node);
377377
static void RecordConstLocation(pgssJumbleState *jstate, int location);
378378
static char *generate_normalized_query(pgssJumbleState *jstate, const char *query,
379-
int query_loc, int *query_len_p, int encoding);
379+
int query_loc, int *query_len_p);
380380
static void fill_in_constant_lengths(pgssJumbleState *jstate, const char *query,
381381
int query_loc);
382382
static int comp_location(const void *a, const void *b);
@@ -1336,8 +1336,7 @@ pgss_store(const char *query, uint64 queryId,
13361336
LWLockRelease(pgss->lock);
13371337
norm_query = generate_normalized_query(jstate, query,
13381338
query_location,
1339-
&query_len,
1340-
encoding);
1339+
&query_len);
13411340
LWLockAcquire(pgss->lock, LW_SHARED);
13421341
}
13431342

@@ -3235,7 +3234,7 @@ RecordConstLocation(pgssJumbleState *jstate, int location)
32353234
*/
32363235
static char *
32373236
generate_normalized_query(pgssJumbleState *jstate, const char *query,
3238-
int query_loc, int *query_len_p, int encoding)
3237+
int query_loc, int *query_len_p)
32393238
{
32403239
char *norm_query;
32413240
int query_len = *query_len_p;

0 commit comments

Comments
 (0)