aboutsummaryrefslogtreecommitdiff
path: root/src/backend/executor/execMain.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/executor/execMain.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/executor/execMain.c')
-rw-r--r--src/backend/executor/execMain.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/backend/executor/execMain.c b/src/backend/executor/execMain.c
index 2cf6dad7685..8638bd3dd96 100644
--- a/src/backend/executor/execMain.c
+++ b/src/backend/executor/execMain.c
@@ -131,11 +131,11 @@ ExecutorStart(QueryDesc *queryDesc, int eflags)
{
/*
* In some cases (e.g. an EXECUTE statement) a query execution will skip
- * parse analysis, which means that the queryid won't be reported. Note
- * that it's harmless to report the queryid multiple time, as the call will
- * be ignored if the top level queryid has already been reported.
+ * parse analysis, which means that the query_id won't be reported. Note
+ * that it's harmless to report the query_id multiple time, as the call will
+ * be ignored if the top level query_id has already been reported.
*/
- pgstat_report_queryid(queryDesc->plannedstmt->queryId, false);
+ pgstat_report_query_id(queryDesc->plannedstmt->queryId, false);
if (ExecutorStart_hook)
(*ExecutorStart_hook) (queryDesc, eflags);