aboutsummaryrefslogtreecommitdiff
path: root/src/backend/tcop/postgres.c
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2021-04-20 12:22:26 -0400
committerBruce Momjian <bruce@momjian.us>2021-04-20 12:22:26 -0400
commit9660834dd8bf5b093f7b49eef846666201d45a35 (patch)
treedcdc571c9a6630225ed127f65599c73ee4533104 /src/backend/tcop/postgres.c
parent7645376774c8532159f5f0f905e5e734d4ccbb18 (diff)
downloadpostgresql-9660834dd8bf5b093f7b49eef846666201d45a35.tar.gz
postgresql-9660834dd8bf5b093f7b49eef846666201d45a35.zip
adjust query id feature to use pg_stat_activity.query_id
Previously, it was pg_stat_activity.queryid to match the pg_stat_statements queryid column. This is an adjustment to patch 4f0b0966c8. This also adjusts some of the internal function calls to match. Catversion bumped. Reported-by: Álvaro Herrera, Julien Rouhaud Discussion: https://postgr.es/m/20210408032704.GA7498@alvherre.pgsql
Diffstat (limited to 'src/backend/tcop/postgres.c')
-rw-r--r--src/backend/tcop/postgres.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/tcop/postgres.c b/src/backend/tcop/postgres.c
index 825fd55107a..1216a2b397b 100644
--- a/src/backend/tcop/postgres.c
+++ b/src/backend/tcop/postgres.c
@@ -694,7 +694,7 @@ pg_analyze_and_rewrite_params(RawStmt *parsetree,
free_parsestate(pstate);
- pgstat_report_queryid(query->queryId, false);
+ pgstat_report_query_id(query->queryId, false);
if (log_parser_stats)
ShowUsage("PARSE ANALYSIS STATISTICS");
@@ -1031,7 +1031,7 @@ exec_simple_query(const char *query_string)
DestReceiver *receiver;
int16 format;
- pgstat_report_queryid(0, true);
+ pgstat_report_query_id(0, true);
/*
* Get the command name for use in status display (it also becomes the