forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitad30805
committed
Use FullTransactionId for the transaction stack.
Provide GetTopFullTransactionId() and GetCurrentFullTransactionId().The intended users of these interfaces are access methods that usexids for visibility checks but don't want to have to go back and"freeze" existing references some time later before the 32 bit xidcounter wraps around.Use a new struct to serialize the transaction state for parallelquery, because FullTransactionId doesn't fit into the previousserialization scheme very well.Author: Thomas MunroReviewed-by: Heikki LinnakangasDiscussion:https://postgr.es/m/CAA4eK1%2BMv%2Bmb0HFfWM9Srtc6MVe160WFurXV68iAFMcagRZ0dQ%40mail.gmail.com1 parent2fc7af5 commitad30805
File tree
5 files changed
+170
-81
lines changed- src
- backend/access/transam
- include/access
- tools/pgindent
5 files changed
+170
-81
lines changedLines changed: 8 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
35 | 35 |
| |
36 | 36 |
| |
37 | 37 |
| |
38 |
| - | |
| 38 | + | |
| 39 | + | |
39 | 40 |
| |
40 | 41 |
| |
41 | 42 |
| |
| |||
44 | 45 |
| |
45 | 46 |
| |
46 | 47 |
| |
47 |
| - | |
| 48 | + | |
48 | 49 |
| |
49 | 50 |
| |
| 51 | + | |
50 | 52 |
| |
51 | 53 |
| |
52 | 54 |
| |
| |||
64 | 66 |
| |
65 | 67 |
| |
66 | 68 |
| |
67 |
| - | |
| 69 | + | |
68 | 70 |
| |
69 | 71 |
| |
70 | 72 |
| |
| |||
73 | 75 |
| |
74 | 76 |
| |
75 | 77 |
| |
76 |
| - | |
| 78 | + | |
| 79 | + | |
77 | 80 |
| |
78 | 81 |
| |
79 | 82 |
| |
| |||
232 | 235 |
| |
233 | 236 |
| |
234 | 237 |
| |
235 |
| - | |
| 238 | + | |
236 | 239 |
| |
237 | 240 |
| |
238 | 241 |
| |
|
0 commit comments
Comments
(0)