Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/backend/replication/slot.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
#include "common/string.h"
#include "miscadmin.h"
#include "pgstat.h"
#include "replication/logical.h"
#include "replication/slot.h"
#include "replication/message.h"
#include "storage/fd.h"
Expand Down Expand Up @@ -1387,7 +1388,8 @@ InvalidatePossiblyObsoleteSlot(ReplicationSlotInvalidationCause cause,
{
case RS_INVAL_WAL_REMOVED:
if (initial_restart_lsn != InvalidXLogRecPtr &&
initial_restart_lsn < oldestLSN)
initial_restart_lsn < oldestLSN &&
+ !Custom_XLogReaderRoutines)
conflict = cause;
break;
case RS_INVAL_HORIZON:
Expand Down