mirror of
https://github.com/postgres/postgres.git
synced 2025-08-19 23:22:23 +03:00
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
This commit is contained in:
@@ -132,7 +132,7 @@ parse_analyze(RawStmt *parseTree, const char *sourceText,
|
||||
|
||||
free_parsestate(pstate);
|
||||
|
||||
pgstat_report_queryid(query->queryId, false);
|
||||
pgstat_report_query_id(query->queryId, false);
|
||||
|
||||
return query;
|
||||
}
|
||||
@@ -171,7 +171,7 @@ parse_analyze_varparams(RawStmt *parseTree, const char *sourceText,
|
||||
|
||||
free_parsestate(pstate);
|
||||
|
||||
pgstat_report_queryid(query->queryId, false);
|
||||
pgstat_report_query_id(query->queryId, false);
|
||||
|
||||
return query;
|
||||
}
|
||||
|
Reference in New Issue
Block a user