]> granicus.if.org Git - postgresql/commitdiff
Fix typo in logical truncate replication
authorPeter Eisentraut <peter_e@gmx.net>
Mon, 23 Apr 2018 17:38:22 +0000 (13:38 -0400)
committerPeter Eisentraut <peter_e@gmx.net>
Mon, 23 Apr 2018 17:38:22 +0000 (13:38 -0400)
This could result in some misbehavior in a cascading replication setup.

src/backend/replication/logical/worker.c

index aa7e27179e8b10f73370448cb4cc9fe5af5bb285..2bcf56ca2ffa6b1550ea83ada22768891ab07fad 100644 (file)
@@ -932,7 +932,7 @@ apply_handle_truncate(StringInfo s)
                rels = lappend(rels, rel->localrel);
                relids = lappend_oid(relids, rel->localreloid);
                if (RelationIsLogicallyLogged(rel->localrel))
-                       relids_logged = lappend_oid(relids, rel->localreloid);
+                       relids_logged = lappend_oid(relids_logged, rel->localreloid);
        }
 
        /*