bdr: Don't insert commands into bdr_queued_commands during replay.
authorAndres Freund <[email protected]>
Tue, 25 Feb 2014 12:39:33 +0000 (13:39 +0100)
committerAndres Freund <[email protected]>
Thu, 3 Jul 2014 15:55:19 +0000 (17:55 +0200)
contrib/bdr/bdr--0.5.sql

index 4564d1d1fe933eba77723eae34830fa33839ad04..e72fd25a8a10c8009374b1f7673a87b5274c4017 100644 (file)
@@ -159,6 +159,10 @@ AS $function$
 DECLARE
     r RECORD;
 BEGIN
+    IF pg_replication_identifier_is_replaying() THEN
+       RETURN;
+    END IF;
+
     FOR r IN SELECT * FROM pg_event_trigger_get_creation_commands()
     LOOP
         /* ignore temporary objects */