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.out | ||
| cursors.out | ||
| dml.out | ||
| entry_timestamp.out | ||
| level_tracking.out | ||
| oldextversions.out | ||
| planning.out | ||
| select.out | ||
| user_activity.out | ||
| utility.out | ||
| wal.out | ||