postgres/contrib/pg_stat_statements/expected
Michael Paquier 6b652e6ce8 Set query ID for inner queries of CREATE TABLE AS and DECLARE
Some utility statements contain queries that can be planned and
executed: CREATE TABLE AS and DECLARE CURSOR.  This commit adds query ID
computation for the inner queries executed by these two utility
commands, with and without EXPLAIN.  This change leads to four new
callers of JumbleQuery() and post_parse_analyze_hook() so as extensions
can decide what to do with this new data.

Previously, extensions relying on the query ID, like pg_stat_statements,
were not able to track these nested queries as the query_id was 0.

For pg_stat_statements, this commit leads to additions under !toplevel
when pg_stat_statements.track is set to "all", as shown in its
regression tests.  The output of EXPLAIN for these two utilities gains a
"Query Identifier" if compute_query_id is enabled.

Author: Anthonin Bonnefoy
Reviewed-by: Michael Paquier, Jian He
Discussion: https://postgr.es/m/CAO6_XqqM6S9bQ2qd=75W+yKATwoazxSNhv5sjW06fjGAtHbTUA@mail.gmail.com
2024-10-28 09:03:20 +09:00
..
cleanup.out Refactor tests of pg_stat_statements for planning, utility and level tracking 2023-02-20 09:28:29 +09:00
cursors.out Add NOT NULL checking of pg_stat_statements_reset() in tests 2023-11-27 02:52:17 +02:00
dml.out Show values of SET statements as constants in pg_stat_statements 2024-09-30 14:02:00 +09:00
entry_timestamp.out Track statement entry timestamp in contrib/pg_stat_statements 2023-11-27 02:52:17 +02:00
extended.out Add missing query ID reporting in extended query protocol 2024-09-18 09:59:09 +09:00
level_tracking.out Set query ID for inner queries of CREATE TABLE AS and DECLARE 2024-10-28 09:03:20 +09:00
oldextversions.out pg_stat_statements: Add columns to track parallel worker activity 2024-10-09 08:30:45 +09:00
parallel.out pg_stat_statements: Add columns to track parallel worker activity 2024-10-09 08:30:45 +09:00
planning.out Track more precisely query locations for nested statements 2024-10-24 09:29:54 +09:00
privileges.out pg_stat_statements: Add regression test for privilege handling. 2024-07-24 20:54:51 +09:00
select.out Track more precisely query locations for nested statements 2024-10-24 09:29:54 +09:00
user_activity.out Add NOT NULL checking of pg_stat_statements_reset() in tests 2023-11-27 02:52:17 +02:00
utility.out Track more precisely query locations for nested statements 2024-10-24 09:29:54 +09:00
wal.out Show values of SET statements as constants in pg_stat_statements 2024-09-30 14:02:00 +09:00