mirror of
https://github.com/postgres/postgres.git
synced 2026-02-22 01:11:05 -05:00
For utility statements defined within a function, the query tree is
copied to a PlannedStmt as utility commands do not require planning.
However, the query ID was missing from the information passed down.
This leads to plugins relying on the query ID like pg_stat_statements to
not be able to track utility statements within function calls. Tests
are added to check this behavior, depending on pg_stat_statements.track.
This is an old bug. Now, query IDs for utilities are compiled using
their parsed trees rather than the query string since v16
(
|
||
|---|---|---|
| .. | ||
| cleanup.sql | ||
| cursors.sql | ||
| dml.sql | ||
| entry_timestamp.sql | ||
| level_tracking.sql | ||
| oldextversions.sql | ||
| planning.sql | ||
| select.sql | ||
| user_activity.sql | ||
| utility.sql | ||
| wal.sql | ||