bdr: ignore temp objects when queueing
authorAlvaro Herrera <alvherre@alvh.no-ip.org>
Thu, 20 Feb 2014 22:18:59 +0000 (19:18 -0300)
committerAndres Freund <andres@anarazel.de>
Thu, 3 Jul 2014 15:55:18 +0000 (17:55 +0200)
contrib/bdr/bdr--0.5.sql

index 96022372e6df9e84b4f2c25f788327e1bf895406..27262cf1615516ab39568d7e0a713bd163765dee 100644 (file)
@@ -161,6 +161,11 @@ DECLARE
 BEGIN
         FOR r IN SELECT * FROM pg_event_trigger_get_creation_commands()
         LOOP
+               /* ignore temporary objects */
+               IF r.schema = 'pg_temp' THEN
+                   CONTINUE;
+               END IF;
+
                 INSERT INTO bdr.bdr_queued_commands
                    (obj_type, obj_identity, command, executed)
                    VALUES