5 -- table (will be really dropped at the end)
7 DROP TABLE test_exists;
9 DROP TABLE IF EXISTS test_exists;
11 CREATE TABLE test_exists (a int, b text);
15 DROP VIEW test_view_exists;
17 DROP VIEW IF EXISTS test_view_exists;
19 CREATE VIEW test_view_exists AS select * from test_exists;
21 DROP VIEW IF EXISTS test_view_exists;
23 DROP VIEW test_view_exists;
27 DROP INDEX test_index_exists;
29 DROP INDEX IF EXISTS test_index_exists;
31 CREATE INDEX test_index_exists on test_exists(a);
33 DROP INDEX IF EXISTS test_index_exists;
35 DROP INDEX test_index_exists;
39 DROP SEQUENCE test_sequence_exists;
41 DROP SEQUENCE IF EXISTS test_sequence_exists;
43 CREATE SEQUENCE test_sequence_exists;
45 DROP SEQUENCE IF EXISTS test_sequence_exists;
47 DROP SEQUENCE test_sequence_exists;
51 DROP SCHEMA test_schema_exists;
53 DROP SCHEMA IF EXISTS test_schema_exists;
55 CREATE SCHEMA test_schema_exists;
57 DROP SCHEMA IF EXISTS test_schema_exists;
59 DROP SCHEMA test_schema_exists;
63 DROP TYPE test_type_exists;
65 DROP TYPE IF EXISTS test_type_exists;
67 CREATE type test_type_exists as (a int, b text);
69 DROP TYPE IF EXISTS test_type_exists;
71 DROP TYPE test_type_exists;
75 DROP DOMAIN test_domain_exists;
77 DROP DOMAIN IF EXISTS test_domain_exists;
79 CREATE domain test_domain_exists as int not null check (value > 0);
81 DROP DOMAIN IF EXISTS test_domain_exists;
83 DROP DOMAIN test_domain_exists;
88 DROP TABLE IF EXISTS test_exists;
90 DROP TABLE test_exists;
103 DROP USER IF EXISTS tu1, tu2;
109 DROP ROLE IF EXISTS tr1, tr2;
115 DROP GROUP IF EXISTS tg1, tg2;