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/E1phvk7-000VAH-7k@gemulon.postgresql.org
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

+2
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

+3
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)