pgsql: Fix issues in invalidation of obsolete replication slots.

2020-06-19 Thread Fujii Masao
Fix issues in invalidation of obsolete replication slots. This commit fixes the following issues. 1. There is the case where the slot is dropped while trying to invalidate it. InvalidateObsoleteReplicationSlots() did not handle this case, and which could cause checkpoint to fail. 2. Inva

pgsql: Fix issues in invalidation of obsolete replication slots.

2020-06-19 Thread Fujii Masao
Fix issues in invalidation of obsolete replication slots. This commit fixes the following issues. 1. There is the case where the slot is dropped while trying to invalidate it. InvalidateObsoleteReplicationSlots() did not handle this case, and which could cause checkpoint to fail. 2. Inva