Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 936e3fa

Browse files
Drop global objects after completed test
Project policy is to not leave global objects behind after a regress test run. This was found as a result of the development of a patch to make pg_regress detect such leftovers automatically, which in the end was withdrawn due to issues with parallel runs. Discussion: https://postgr.es/m/[email protected]
1 parent 2ec005b commit 936e3fa

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

src/test/modules/test_pg_dump/expected/test_pg_dump.out

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,3 +91,5 @@ ALTER EXTENSION test_pg_dump DROP SERVER s0;
9191
ALTER EXTENSION test_pg_dump DROP TABLE test_pg_dump_t1;
9292
ALTER EXTENSION test_pg_dump DROP TYPE test_pg_dump_e1;
9393
ALTER EXTENSION test_pg_dump DROP VIEW test_pg_dump_v1;
94+
DROP OWNED BY regress_dump_test_role RESTRICT;
95+
DROP ROLE regress_dump_test_role;

src/test/modules/test_pg_dump/sql/test_pg_dump.sql

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,3 +106,6 @@ ALTER EXTENSION test_pg_dump DROP SERVER s0;
106106
ALTER EXTENSION test_pg_dump DROP TABLE test_pg_dump_t1;
107107
ALTER EXTENSION test_pg_dump DROP TYPE test_pg_dump_e1;
108108
ALTER EXTENSION test_pg_dump DROP VIEW test_pg_dump_v1;
109+
110+
DROP OWNED BY regress_dump_test_role RESTRICT;
111+
DROP ROLE regress_dump_test_role;

0 commit comments

Comments
 (0)