postgresql/contrib/pg_stat_statements
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
..
expected Show GIDs of two-phase commit commands as constants in pg_stat_statements 2023-08-12 10:44:15 +09:00
sql Show GIDs of two-phase commit commands as constants in pg_stat_statements 2023-08-12 10:44:15 +09:00
.gitignore
Makefile
meson.build
pg_stat_statements--1.0--1.1.sql
pg_stat_statements--1.1--1.2.sql
pg_stat_statements--1.2--1.3.sql
pg_stat_statements--1.3--1.4.sql
pg_stat_statements--1.4--1.5.sql
pg_stat_statements--1.4.sql
pg_stat_statements--1.5--1.6.sql
pg_stat_statements--1.6--1.7.sql
pg_stat_statements--1.7--1.8.sql
pg_stat_statements--1.8--1.9.sql
pg_stat_statements--1.9--1.10.sql
pg_stat_statements.c pg_stat_statements: Fix second comment related to entry resets 2023-06-29 09:17:26 +09:00
pg_stat_statements.conf Show GIDs of two-phase commit commands as constants in pg_stat_statements 2023-08-12 10:44:15 +09:00
pg_stat_statements.control