forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit638d42a
committed
Show GIDs of two-phase commit commands as constants in pg_stat_statements
This relies on the "location" field added to TransactionStmt in31de7e6,now applied to the "gid" field used by 2PC commands. These commands arenow reported like:COMMIT PREPARED $1PREPARE TRANSACTION $1ROLLBACK PREPARED $1Applying constants for these commands is a huge advantage for workloadsthat rely a lot on 2PC commands with different GIDs. Some tests areadded to track the new behavior.Reviewed-by: Julien RouhaudDiscussion:https://postgr.es/m/ZMhT9kNtJJsHw6jK@paquier.xyz1 parent5dc456b commit638d42a
File tree
5 files changed
+39
-4
lines changed- contrib/pg_stat_statements
- expected
- sql
- src
- backend/parser
- include/nodes
5 files changed
+39
-4
lines changedLines changed: 23 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
197 | 197 |
| |
198 | 198 |
| |
199 | 199 |
| |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
200 | 223 |
| |
201 | 224 |
| |
202 | 225 |
| |
|
Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
| 2 | + |
Lines changed: 10 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
115 | 115 |
| |
116 | 116 |
| |
117 | 117 |
| |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
118 | 128 |
| |
119 | 129 |
| |
120 | 130 |
| |
|
Lines changed: 3 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
10924 | 10924 |
| |
10925 | 10925 |
| |
10926 | 10926 |
| |
10927 |
| - | |
| 10927 | + | |
10928 | 10928 |
| |
10929 | 10929 |
| |
10930 | 10930 |
| |
| |||
10933 | 10933 |
| |
10934 | 10934 |
| |
10935 | 10935 |
| |
10936 |
| - | |
| 10936 | + | |
10937 | 10937 |
| |
10938 | 10938 |
| |
10939 | 10939 |
| |
| |||
10942 | 10942 |
| |
10943 | 10943 |
| |
10944 | 10944 |
| |
10945 |
| - | |
| 10945 | + | |
10946 | 10946 |
| |
10947 | 10947 |
| |
10948 | 10948 |
| |
|
Lines changed: 2 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3540 | 3540 |
| |
3541 | 3541 |
| |
3542 | 3542 |
| |
3543 |
| - | |
| 3543 | + | |
| 3544 | + | |
3544 | 3545 |
| |
3545 | 3546 |
| |
3546 | 3547 |
| |
|
0 commit comments
Comments
(0)