forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit67b9b3c
committed
Provide XLogRecGetFullXid().
In order to be able to work with FullTransactionId values during replaywithout increasing the size of the WAL, infer the epoch. In general wecan't do that safely, but during replay we can because we know thatnextFullXid can't advance concurrently.Prevent frontend code from seeing this new function, due to the aboverestriction. Perhaps in future it will be possible to extract the valueentirely from independent WAL records, and then this restriction can belifted.Author: Thomas Munro, based on earlier code from Andres FreundDiscussion:https://postgr.es/m/CA%2BhUKG%2BmLmuDjMi6o1dxkKvGRL56Y2Rz%2BiXAcrZV03G9ZuFQ8Q%40mail.gmail.com1 parent5925e55 commit67b9b3c
File tree
2 files changed
+43
-0
lines changed- src
- backend/access/transam
- include/access
2 files changed
+43
-0
lines changedLines changed: 35 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
26 | 26 |
| |
27 | 27 |
| |
28 | 28 |
| |
| 29 | + | |
29 | 30 |
| |
30 | 31 |
| |
31 | 32 |
| |
| |||
1443 | 1444 |
| |
1444 | 1445 |
| |
1445 | 1446 |
| |
| 1447 | + | |
| 1448 | + | |
| 1449 | + | |
| 1450 | + | |
| 1451 | + | |
| 1452 | + | |
| 1453 | + | |
| 1454 | + | |
| 1455 | + | |
| 1456 | + | |
| 1457 | + | |
| 1458 | + | |
| 1459 | + | |
| 1460 | + | |
| 1461 | + | |
| 1462 | + | |
| 1463 | + | |
| 1464 | + | |
| 1465 | + | |
| 1466 | + | |
| 1467 | + | |
| 1468 | + | |
| 1469 | + | |
| 1470 | + | |
| 1471 | + | |
| 1472 | + | |
| 1473 | + | |
| 1474 | + | |
| 1475 | + | |
| 1476 | + | |
| 1477 | + | |
| 1478 | + | |
| 1479 | + | |
| 1480 | + |
Lines changed: 8 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
25 | 25 |
| |
26 | 26 |
| |
27 | 27 |
| |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
28 | 32 |
| |
29 | 33 |
| |
30 | 34 |
| |
| |||
240 | 244 |
| |
241 | 245 |
| |
242 | 246 |
| |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
243 | 251 |
| |
244 | 252 |
| |
245 | 253 |
| |
|
0 commit comments
Comments
(0)