londiste: actually execute the ENABLE/DISABLE RULE query in londiste.create_partition
authorPetr Jelinek <git@pjmodos.net>
Sun, 3 Mar 2013 23:58:55 +0000 (00:58 +0100)
committerPetr Jelinek <git@pjmodos.net>
Sun, 3 Mar 2013 23:58:55 +0000 (00:58 +0100)
sql/londiste/functions/londiste.create_partition.sql

index 7528acdc77c64e4772b11152b99a6c14b233488d..1a59e2ee7b114f567df1ad8508e72dc1bd4d3390 100644 (file)
@@ -235,6 +235,7 @@ begin
         if r_extra is not null then
             sql := 'ALTER TABLE ' || fq_part || r_extra
                 || quote_ident(r.rulename);
+            execute sql;
         end if;
     end loop;