Commit b2dada8f authored by Robert Haas's avatar Robert Haas

Remove overeager assertion in logical_heap_begin_rewrite.

It's legal to configure wal_level=logical and max_replication_slots=0
simultaneously.

Andres Freund
parent 62e57ff0
...@@ -812,8 +812,6 @@ logical_begin_heap_rewrite(RewriteState state) ...@@ -812,8 +812,6 @@ logical_begin_heap_rewrite(RewriteState state)
if (!state->rs_logical_rewrite) if (!state->rs_logical_rewrite)
return; return;
Assert(ReplicationSlotCtl != NULL);
ProcArrayGetReplicationSlotXmin(NULL, &logical_xmin); ProcArrayGetReplicationSlotXmin(NULL, &logical_xmin);
/* /*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment