forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit9b66342
committed
Fix commit_ts for FrozenXid and BootstrapXid
Previously, requesting commit timestamp for transactionsFrozenTransactionId and BootstrapTransactionId resulted in an error.But since those values can validly appear in committed tuples' Xmin,this behavior is unhelpful and error prone: each caller would have tospecial-case those values before requesting timestamp data for an Xid.We already have a perfectly good interface for returning "the Xid yourequested is too old for us to have commit TS data for it", so let's usethat instead.Backpatch to 9.5, where commit timestamps appeared.Author: Craig RingerDiscussion:https://www.postgresql.org/message-id/CAMsr+YFM5Q=+ry3mKvWEqRTxrB0iU3qUSRnS28nz6FJYtBwhJg@mail.gmail.com1 parent4a5e1d3 commit9b66342
File tree
4 files changed
+33
-16
lines changed- src
- backend/access/transam
- test/modules/commit_ts
- expected
- t
4 files changed
+33
-16
lines changedLines changed: 9 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
288 | 288 |
| |
289 | 289 |
| |
290 | 290 |
| |
291 |
| - | |
292 |
| - | |
| 291 | + | |
293 | 292 |
| |
294 | 293 |
| |
295 | 294 |
| |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
296 | 303 |
| |
297 | 304 |
| |
298 | 305 |
| |
|
Lines changed: 10 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
28 | 28 |
| |
29 | 29 |
| |
30 | 30 |
| |
31 |
| - | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
32 | 36 |
| |
33 |
| - | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
34 | 42 |
| |
35 | 43 |
| |
36 | 44 |
| |
|
Lines changed: 10 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
23 | 23 |
| |
24 | 24 |
| |
25 | 25 |
| |
26 |
| - | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
27 | 31 |
| |
28 |
| - | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
29 | 37 |
| |
30 | 38 |
| |
31 | 39 |
|
Lines changed: 4 additions & 10 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
25 | 25 |
| |
26 | 26 |
| |
27 | 27 |
| |
28 |
| - | |
29 |
| - | |
30 |
| - | |
31 |
| - | |
32 |
| - | |
| 28 | + | |
| 29 | + | |
33 | 30 |
| |
34 | 31 |
| |
35 | 32 |
| |
36 |
| - | |
37 |
| - | |
38 |
| - | |
39 |
| - | |
40 |
| - | |
| 33 | + | |
| 34 | + | |
41 | 35 |
| |
42 | 36 |
| |
43 | 37 |
| |
|
0 commit comments
Comments
(0)