postgresql/src/backend/access
Tom Lane d1e9079295 Ignore nextOid when replaying an ONLINE checkpoint.
The nextOid value is from the start of the checkpoint and may well be stale
compared to values from more recent XLOG_NEXTOID records.  Previously, we
adopted it anyway, allowing the OID counter to go backwards during a crash.
While this should be harmless, it contributed to the severity of the bug
fixed in commit 0408e1ed5, by allowing duplicate TOAST OIDs to be assigned
immediately following a crash.  Without this error, that issue would only
have arisen when TOAST objects just younger than a multiple of 2^32 OIDs
were deleted and then not vacuumed in time to avoid a conflict.

Pavan Deolasee

Discussion: https://postgr.es/m/CABOikdOgWT2hHkYG3Wwo2cyZJq2zfs1FH0FgX-=h4OLosXHf9w@mail.gmail.com
2018-04-11 18:11:29 -04:00
..
brin Indexes with INCLUDE columns and their support in B-tree 2018-04-07 23:00:39 +03:00
common Remove unused variable in non-assert-enabled build 2018-04-08 19:30:38 +03:00
gin Indexes with INCLUDE columns and their support in B-tree 2018-04-07 23:00:39 +03:00
gist Indexes with INCLUDE columns and their support in B-tree 2018-04-07 23:00:39 +03:00
hash Indexes with INCLUDE columns and their support in B-tree 2018-04-07 23:00:39 +03:00
heap Do not select new object OIDs that match recently-dead entries. 2018-04-11 17:41:22 -04:00
index Further cleanup of client dependencies on src/include/catalog headers. 2018-04-09 14:39:58 -04:00
nbtree minor comment fixes in nbtinsert.c 2018-04-10 18:36:40 -04:00
rmgrdesc Further cleanup of client dependencies on src/include/catalog headers. 2018-04-09 14:39:58 -04:00
spgist Indexes with INCLUDE columns and their support in B-tree 2018-04-07 23:00:39 +03:00
tablesample Update copyright for 2018 2018-01-02 23:30:12 -05:00
transam Ignore nextOid when replaying an ONLINE checkpoint. 2018-04-11 18:11:29 -04:00
Makefile TABLESAMPLE, SQL Standard and extensible 2015-05-15 14:37:10 -04:00