postgresql/src/backend/access
Michael Paquier 060f9f5ea5 Revert recent changes related to handling of 2PC files at recovery
This commit reverts 8f67f994e8 (down to v13) and c3de0f9eed (down to
v17), as these are proving to not be completely correct regarding two
aspects:
- In v17 and newer branches, c3de0f9eed38's check for epoch handling is
incorrect, and does not correctly handle frozen epochs.  A logic closer
to widen_snapshot_xid() should be used.  The 2PC code should try to
integrate deeper with FullTransactionIds, 5a1dfde833 being not enough.
- In v13 and newer branches, 8f67f994e8 is a workaround for the real
issue, which is that we should not attempt CLOG lookups without reaching
consistency.  This exists since 728bd991c3, and this is reachable with
ProcessTwoPhaseBuffer() called by restoreTwoPhaseData() at the beginning
of recovery.

Per discussion with Noah Misch.

Discussion: https://postgr.es/m/20250116010051.f3.nmisch@google.com
Backpatch-through: 13
2025-01-17 13:27:47 +09:00
..
brin Fix potential integer overflow in bringetbitmap() 2025-01-14 15:13:19 +09:00
common doc: 1-byte varlena headers can be used for user PLAIN storage 2023-10-31 09:10:35 -04:00
gin Fix locking when fixing an incomplete split of a GIN internal page 2024-01-29 13:46:43 +02:00
gist Fix another bug in parent page splitting during GiST index build. 2023-09-26 14:15:28 +03:00
hash Allow _h_indexbuild() to be interrupted. 2024-09-13 16:16:47 -04:00
heap Fix outdated bit in README.tuplock 2024-11-21 16:54:36 +01:00
index Unpin buffer before inplace update waits for an XID to end. 2024-10-29 09:39:59 -07:00
nbtree Fix btmarkpos/btrestrpos array key wraparound bug. 2023-09-28 16:29:29 -07:00
rmgrdesc Fix assert in logicalmsg_desc 2022-08-17 00:17:37 +02:00
spgist Fix insertion of SP-GiST REDIRECT tuples during REINDEX CONCURRENTLY. 2024-06-17 14:30:59 -04:00
table Replace RelationOpenSmgr() with RelationGetSmgr(). 2022-11-17 16:54:30 -05:00
tablesample Update copyright for 2021 2021-01-02 13:06:25 -05:00
transam Revert recent changes related to handling of 2PC files at recovery 2025-01-17 13:27:47 +09:00
Makefile Introduce access/{table.h, relation.h}, for generic functions from heapam.h. 2019-01-21 10:51:36 -08:00