]> granicus.if.org Git - postgresql/commitdiff
Remove overeager assertion in logical_heap_begin_rewrite.
authorRobert Haas <rhaas@postgresql.org>
Fri, 9 May 2014 14:33:40 +0000 (10:33 -0400)
committerRobert Haas <rhaas@postgresql.org>
Fri, 9 May 2014 14:36:12 +0000 (10:36 -0400)
It's legal to configure wal_level=logical and max_replication_slots=0
simultaneously.

Andres Freund

src/backend/access/heap/rewriteheap.c

index 7b5791147740a5be9f1ac73b279297e4af5f5550..687e76e6db670b74cc1c9302a821cf609f2aa2eb 100644 (file)
@@ -812,8 +812,6 @@ logical_begin_heap_rewrite(RewriteState state)
        if (!state->rs_logical_rewrite)
                return;
 
-       Assert(ReplicationSlotCtl != NULL);
-
        ProcArrayGetReplicationSlotXmin(NULL, &logical_xmin);
 
        /*