Explicitly delete event trigger
authorIan Barwick <ian@2ndquadrant.com>
Mon, 15 Dec 2014 05:22:51 +0000 (14:22 +0900)
committerIan Barwick <ian@2ndquadrant.com>
Mon, 15 Dec 2014 05:22:51 +0000 (14:22 +0900)
As event triggers don't have a schema per-se.

src/test/regress/ddl-deparse/dump_regress_db.pl

index 388e3c99374f4a005f04fd91e1ee26c4b22a18d2..3af91d8fc712e89e45cff7745fbc565d34b9b11f 100755 (executable)
@@ -78,6 +78,14 @@ my $pg_ctl= sprintf(
 # TODO: check success
 `${pg_ctl} start`;
 
+my $psql_cmd = sprintf(
+    q|%s/src/bin/psql/psql -p %s -d regression -c 'DROP EVENT TRIGGER deparse_test_trg_ddl_command_end'|,
+    $options{'top-builddir'},
+    $options{'port'},
+);
+
+`${psql_cmd}`;
+
 my $pg_dump_cmd = sprintf(
     q`%s/src/bin/pg_dump/pg_dump -p %s --schema-only --no-owner --no-privileges --exclude-schema=deparse -Fp regression | egrep -v '^-- Dumped'`,
     $options{'top-builddir'},