pgsql: Prevent invalidation of newly created replication slots.

2025-12-07 Thread Amit Kapila
Prevent invalidation of newly created replication slots. A race condition could cause a newly created replication slot to become invalidated between WAL reservation and a checkpoint. Previously, if the required WAL was removed, we retried the reservation process. However, the slot could still be

pgsql: Prevent invalidation of newly created replication slots.

2025-12-07 Thread Amit Kapila
Prevent invalidation of newly created replication slots. A race condition could cause a newly created replication slot to become invalidated between WAL reservation and a checkpoint. Previously, if the required WAL was removed, we retried the reservation process. However, the slot could still be