pgsql: Fix recovery of 2PC transaction during crash recovery

2023-07-17 Thread Michael Paquier
Fix recovery of 2PC transaction during crash recovery A crash in the middle of a checkpoint with some two-phase state data already flushed to disk by this checkpoint could cause a follow-up crash recovery to recover twice the same transaction, once from what has been found in pg_twophase/ at the b

pgsql: Fix recovery of 2PC transaction during crash recovery

2023-07-17 Thread Michael Paquier
Fix recovery of 2PC transaction during crash recovery A crash in the middle of a checkpoint with some two-phase state data already flushed to disk by this checkpoint could cause a follow-up crash recovery to recover twice the same transaction, once from what has been found in pg_twophase/ at the b

pgsql: Fix recovery of 2PC transaction during crash recovery

2023-07-17 Thread Michael Paquier
Fix recovery of 2PC transaction during crash recovery A crash in the middle of a checkpoint with some two-phase state data already flushed to disk by this checkpoint could cause a follow-up crash recovery to recover twice the same transaction, once from what has been found in pg_twophase/ at the b

pgsql: Fix recovery of 2PC transaction during crash recovery

2023-07-17 Thread Michael Paquier
Fix recovery of 2PC transaction during crash recovery A crash in the middle of a checkpoint with some two-phase state data already flushed to disk by this checkpoint could cause a follow-up crash recovery to recover twice the same transaction, once from what has been found in pg_twophase/ at the b

pgsql: Fix recovery of 2PC transaction during crash recovery

2023-07-17 Thread Michael Paquier
Fix recovery of 2PC transaction during crash recovery A crash in the middle of a checkpoint with some two-phase state data already flushed to disk by this checkpoint could cause a follow-up crash recovery to recover twice the same transaction, once from what has been found in pg_twophase/ at the b

pgsql: Fix recovery of 2PC transaction during crash recovery

2023-07-17 Thread Michael Paquier
Fix recovery of 2PC transaction during crash recovery A crash in the middle of a checkpoint with some two-phase state data already flushed to disk by this checkpoint could cause a follow-up crash recovery to recover twice the same transaction, once from what has been found in pg_twophase/ at the b

pgsql: Fix recovery of 2PC transaction during crash recovery

2023-07-17 Thread Michael Paquier
Fix recovery of 2PC transaction during crash recovery A crash in the middle of a checkpoint with some two-phase state data already flushed to disk by this checkpoint could cause a follow-up crash recovery to recover twice the same transaction, once from what has been found in pg_twophase/ at the b