postgres/contrib/pg_stat_statements/sql
Michael Paquier 3430215fe3 pg_stat_statements: Add more tests with temp tables and namespaces
These tests provide coverage for RangeTblEntry and how query jumbling
works with search_path, as well as the case where relations are
re-created, generating a different query ID as the relation OID is used
in the computation.

A patch is under discussion to switch to a different approach based on
the relation name, and there was no test coverage for this area,
including how queries are currently grouped with search_path.  This is
useful to track how the situation changes between HEAD and any patches
proposed.

Christoph has proposed the test with ON COMMIT DROP temporary tables,
and I have written the second part.

Author: Christoph Berg <myon@debian.org>
Author: Michael Paquier <michael@paquier.xyz>
Discussion: https://postgr.es/m/Z9iWXKGwkm8RAC93@msg.df7cb.de
2025-03-26 07:25:23 +09:00
..
cleanup.sql Refactor tests of pg_stat_statements for planning, utility and level tracking 2023-02-20 09:28:29 +09:00
cursors.sql Add NOT NULL checking of pg_stat_statements_reset() in tests 2023-11-27 02:52:17 +02:00
dml.sql Add NOT NULL checking of pg_stat_statements_reset() in tests 2023-11-27 02:52:17 +02:00
entry_timestamp.sql Track statement entry timestamp in contrib/pg_stat_statements 2023-11-27 02:52:17 +02:00
extended.sql Add missing query ID reporting in extended query protocol 2024-09-18 09:59:09 +09:00
level_tracking.sql Fix further fallout from EXPLAIN ANALYZE BUFFERS change 2024-12-12 09:50:00 +13:00
oldextversions.sql pg_stat_statements: Add columns to track parallel worker activity 2024-10-09 08:30:45 +09:00
parallel.sql pg_stat_statements: Add columns to track parallel worker activity 2024-10-09 08:30:45 +09:00
planning.sql Track more precisely query locations for nested statements 2024-10-24 09:29:54 +09:00
privileges.sql pg_stat_statements: Add regression test for privilege handling. 2024-07-24 20:54:51 +09:00
select.sql pg_stat_statements: Add more tests with temp tables and namespaces 2025-03-26 07:25:23 +09:00
squashing.sql Introduce squashing of constant lists in query jumbling 2025-03-18 18:56:11 +01:00
user_activity.sql Add NOT NULL checking of pg_stat_statements_reset() in tests 2023-11-27 02:52:17 +02:00
utility.sql pg_stat_statements: Expand tests for SET statements 2024-09-25 10:04:44 +09:00
wal.sql Add NOT NULL checking of pg_stat_statements_reset() in tests 2023-11-27 02:52:17 +02:00