diff options
author | Peter Eisentraut <peter@eisentraut.org> | 2020-09-08 10:08:46 +0200 |
---|---|---|
committer | Peter Eisentraut <peter@eisentraut.org> | 2020-09-08 10:08:46 +0200 |
commit | 1dec091d5b0bfad1a9b061cac820236e98cbd72c (patch) | |
tree | c7315b6d521f1f45bed5e5f3da042cd314fad1c5 | |
parent | 6785974287afa27221a49ae7202ea3d0695c0a84 (diff) | |
download | postgresql-1dec091d5b0bfad1a9b061cac820236e98cbd72c.tar.gz postgresql-1dec091d5b0bfad1a9b061cac820236e98cbd72c.zip |
Remove unused parameter
unused since f0d6f20278b7c5c412ce40a9b86c6b31dc2fbfdd
Discussion: https://www.postgresql.org/message-id/flat/511bb100-f829-ba21-2f10-9f952ec06ead%402ndquadrant.com
-rw-r--r-- | contrib/pg_stat_statements/pg_stat_statements.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/contrib/pg_stat_statements/pg_stat_statements.c b/contrib/pg_stat_statements/pg_stat_statements.c index 6b91c62c31a..1eac9edaee7 100644 --- a/contrib/pg_stat_statements/pg_stat_statements.c +++ b/contrib/pg_stat_statements/pg_stat_statements.c @@ -376,7 +376,7 @@ static void JumbleRowMarks(pgssJumbleState *jstate, List *rowMarks); static void JumbleExpr(pgssJumbleState *jstate, Node *node); static void RecordConstLocation(pgssJumbleState *jstate, int location); 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, int query_loc); static int comp_location(const void *a, const void *b); @@ -1336,8 +1336,7 @@ pgss_store(const char *query, uint64 queryId, LWLockRelease(pgss->lock); norm_query = generate_normalized_query(jstate, query, query_location, - &query_len, - encoding); + &query_len); LWLockAcquire(pgss->lock, LW_SHARED); } @@ -3235,7 +3234,7 @@ RecordConstLocation(pgssJumbleState *jstate, int location) */ 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) { char *norm_query; int query_len = *query_len_p; |