git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 5dc456b) | patch
Show GIDs of two-phase commit commands as constants in pg_stat_statements
2023年8月12日 01:44:15 +0000 (10:44 +0900)
2023年8月12日 01:44:15 +0000 (10:44 +0900)
commit 638d42a3c52081cf4882520f0622161bad69b40f
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
contrib/pg_stat_statements/expected/utility.out diff | blob | blame | history
contrib/pg_stat_statements/pg_stat_statements.conf diff | blob | blame | history
contrib/pg_stat_statements/sql/utility.sql diff | blob | blame | history
src/backend/parser/gram.y diff | blob | blame | history
src/include/nodes/parsenodes.h diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /