postgresql/contrib/pg_stat_statements/sql
Michael Paquier 638d42a3c5 Show GIDs of two-phase commit commands as constants in pg_stat_statements
This relies on the "location" field added to TransactionStmt in 31de7e6,
now applied to the "gid" field used by 2PC commands.  These commands are
now reported like:
COMMIT PREPARED $1
PREPARE TRANSACTION $1
ROLLBACK PREPARED $1

Applying constants for these commands is a huge advantage for workloads
that rely a lot on 2PC commands with different GIDs.  Some tests are
added to track the new behavior.

Reviewed-by: Julien Rouhaud
Discussion: https://postgr.es/m/ZMhT9kNtJJsHw6jK@paquier.xyz
2023-08-12 10:44:15 +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 Expand regression tests of pg_stat_statements for utility queries 2023-02-20 10:16:51 +09:00
dml.sql Refactor more the regression tests of pg_stat_statements 2023-03-03 08:46:11 +09:00
level_tracking.sql Improve cleanup phases in regression tests of pg_stat_statements 2023-03-07 08:58:13 +09:00
oldextversions.sql pg_stat_statements: Track I/O timing for temporary file blocks 2022-04-08 13:12:07 +09:00
planning.sql Refactor tests of pg_stat_statements for planning, utility and level tracking 2023-02-20 09:28:29 +09:00
select.sql Refactor more the regression tests of pg_stat_statements 2023-03-03 08:46:11 +09:00
user_activity.sql Improve cleanup phases in regression tests of pg_stat_statements 2023-03-07 08:58:13 +09:00
utility.sql Show GIDs of two-phase commit commands as constants in pg_stat_statements 2023-08-12 10:44:15 +09:00
wal.sql Refactor more the regression tests of pg_stat_statements 2023-03-03 08:46:11 +09:00