Debian Codegraph @

src/test/isolation/expected/ddl-dependency-locking.out

raw
1 Parsed test spec with 2 sessions
2
3 starting permutation: s1_begin s1_create_function_in_schema s2_drop_schema s1_commit
4 step s1_begin: BEGIN;
5 step s1_create_function_in_schema: CREATE FUNCTION testschema.foo() RETURNS int AS 'select 1' LANGUAGE sql;
6 step s2_drop_schema: DROP SCHEMA testschema; <waiting ...>
7 step s1_commit: COMMIT;
8 step s2_drop_schema: <... completed>
9 ERROR: cannot drop schema testschema because other objects depend on it
10
11 starting permutation: s2_begin s2_drop_schema s1_create_function_in_schema s2_commit
12 step s2_begin: BEGIN;
13 step s2_drop_schema: DROP SCHEMA testschema;
14 step s1_create_function_in_schema: CREATE FUNCTION testschema.foo() RETURNS int AS 'select 1' LANGUAGE sql; <waiting ...>
15 step s2_commit: COMMIT;
16 step s1_create_function_in_schema: <... completed>
17 ERROR: referenced schema was concurrently dropped
18
19 starting permutation: s1_begin s1_alter_function_schema s2_drop_alterschema s1_commit
20 step s1_begin: BEGIN;
21 step s1_alter_function_schema: ALTER FUNCTION public.falter() SET SCHEMA alterschema;
22 step s2_drop_alterschema: DROP SCHEMA alterschema; <waiting ...>
23 step s1_commit: COMMIT;
24 step s2_drop_alterschema: <... completed>
25 ERROR: cannot drop schema alterschema because other objects depend on it
26
27 starting permutation: s2_begin s2_drop_alterschema s1_alter_function_schema s2_commit
28 step s2_begin: BEGIN;
29 step s2_drop_alterschema: DROP SCHEMA alterschema;
30 step s1_alter_function_schema: ALTER FUNCTION public.falter() SET SCHEMA alterschema; <waiting ...>
31 step s2_commit: COMMIT;
32 step s1_alter_function_schema: <... completed>
33 ERROR: referenced schema was concurrently dropped
34
35 starting permutation: s1_begin s1_create_function_with_argtype s2_drop_foo_type s1_commit
36 step s1_begin: BEGIN;
37 step s1_create_function_with_argtype: CREATE FUNCTION fooargtype(num foo) RETURNS int AS 'select 1' LANGUAGE sql;
38 step s2_drop_foo_type: DROP TYPE public.foo; <waiting ...>
39 step s1_commit: COMMIT;
40 step s2_drop_foo_type: <... completed>
41 ERROR: cannot drop type foo because other objects depend on it
42
43 starting permutation: s2_begin s2_drop_foo_type s1_create_function_with_argtype s2_commit
44 step s2_begin: BEGIN;
45 step s2_drop_foo_type: DROP TYPE public.foo;
46 step s1_create_function_with_argtype: CREATE FUNCTION fooargtype(num foo) RETURNS int AS 'select 1' LANGUAGE sql; <waiting ...>
47 step s2_commit: COMMIT;
48 step s1_create_function_with_argtype: <... completed>
49 ERROR: referenced type was concurrently dropped
50
51 starting permutation: s1_begin s1_create_function_with_rettype s2_drop_foo_rettype s1_commit
52 step s1_begin: BEGIN;
53 step s1_create_function_with_rettype: CREATE FUNCTION footrettype() RETURNS id LANGUAGE sql RETURN 1;
54 step s2_drop_foo_rettype: DROP DOMAIN id; <waiting ...>
55 step s1_commit: COMMIT;
56 step s2_drop_foo_rettype: <... completed>
57 ERROR: cannot drop type id because other objects depend on it
58
59 starting permutation: s2_begin s2_drop_foo_rettype s1_create_function_with_rettype s2_commit
60 step s2_begin: BEGIN;
61 step s2_drop_foo_rettype: DROP DOMAIN id;
62 step s1_create_function_with_rettype: CREATE FUNCTION footrettype() RETURNS id LANGUAGE sql RETURN 1; <waiting ...>
63 step s2_commit: COMMIT;
64 step s1_create_function_with_rettype: <... completed>
65 ERROR: referenced type was concurrently dropped
66
67 starting permutation: s1_begin s1_create_function_with_function s2_drop_function_f s1_commit
68 step s1_begin: BEGIN;
69 step s1_create_function_with_function: CREATE FUNCTION foofunc() RETURNS int LANGUAGE SQL RETURN f() + 1;
70 step s2_drop_function_f: DROP FUNCTION f(); <waiting ...>
71 step s1_commit: COMMIT;
72 step s2_drop_function_f: <... completed>
73 ERROR: cannot drop function f() because other objects depend on it
74
75 starting permutation: s2_begin s2_drop_function_f s1_create_function_with_function s2_commit
76 step s2_begin: BEGIN;
77 step s2_drop_function_f: DROP FUNCTION f();
78 step s1_create_function_with_function: CREATE FUNCTION foofunc() RETURNS int LANGUAGE SQL RETURN f() + 1; <waiting ...>
79 step s2_commit: COMMIT;
80 step s1_create_function_with_function: <... completed>
81 ERROR: referenced function was concurrently dropped
82
83 starting permutation: s1_begin s1_create_domain_with_domain s2_drop_domain_id s1_commit
84 step s1_begin: BEGIN;
85 step s1_create_domain_with_domain: CREATE DOMAIN idid as id;
86 step s2_drop_domain_id: DROP DOMAIN id; <waiting ...>
87 step s1_commit: COMMIT;
88 step s2_drop_domain_id: <... completed>
89 ERROR: cannot drop type id because other objects depend on it
90
91 starting permutation: s2_begin s2_drop_domain_id s1_create_domain_with_domain s2_commit
92 step s2_begin: BEGIN;
93 step s2_drop_domain_id: DROP DOMAIN id;
94 step s1_create_domain_with_domain: CREATE DOMAIN idid as id; <waiting ...>
95 step s2_commit: COMMIT;
96 step s1_create_domain_with_domain: <... completed>
97 ERROR: referenced type was concurrently dropped
98
99 starting permutation: s1_begin s1_create_table_with_type s2_drop_footab_type s1_commit
100 step s1_begin: BEGIN;
101 step s1_create_table_with_type: CREATE TABLE tabtype(a footab);
102 step s2_drop_footab_type: DROP TYPE public.footab; <waiting ...>
103 step s1_commit: COMMIT;
104 step s2_drop_footab_type: <... completed>
105 ERROR: cannot drop type footab because other objects depend on it
106
107 starting permutation: s2_begin s2_drop_footab_type s1_create_table_with_type s2_commit
108 step s2_begin: BEGIN;
109 step s2_drop_footab_type: DROP TYPE public.footab;
110 step s1_create_table_with_type: CREATE TABLE tabtype(a footab); <waiting ...>
111 step s2_commit: COMMIT;
112 step s1_create_table_with_type: <... completed>
113 ERROR: referenced type was concurrently dropped
114
115 starting permutation: s1_begin s1_create_server_with_fdw_wrapper s2_drop_fdw_wrapper s1_commit
116 step s1_begin: BEGIN;
117 step s1_create_server_with_fdw_wrapper: CREATE SERVER srv_fdw_wrapper FOREIGN DATA WRAPPER fdw_wrapper;
118 step s2_drop_fdw_wrapper: DROP FOREIGN DATA WRAPPER fdw_wrapper RESTRICT; <waiting ...>
119 step s1_commit: COMMIT;
120 step s2_drop_fdw_wrapper: <... completed>
121 ERROR: cannot drop foreign-data wrapper fdw_wrapper because other objects depend on it
122
123 starting permutation: s2_begin s2_drop_fdw_wrapper s1_create_server_with_fdw_wrapper s2_commit
124 step s2_begin: BEGIN;
125 step s2_drop_fdw_wrapper: DROP FOREIGN DATA WRAPPER fdw_wrapper RESTRICT;
126 step s1_create_server_with_fdw_wrapper: CREATE SERVER srv_fdw_wrapper FOREIGN DATA WRAPPER fdw_wrapper; <waiting ...>
127 step s2_commit: COMMIT;
128 step s1_create_server_with_fdw_wrapper: <... completed>
129 ERROR: referenced foreign-data wrapper was concurrently dropped
130
131 starting permutation: s1_begin s1_alter_function_owner s2_drop_role s1_commit
132 step s1_begin: BEGIN;
133 step s1_alter_function_owner: ALTER FUNCTION public.falter() OWNER TO regress_dependency;
134 step s2_drop_role: DROP ROLE regress_dependency; <waiting ...>
135 step s1_commit: COMMIT;
136 step s2_drop_role: <... completed>
137 ERROR: role "regress_dependency" cannot be dropped because some objects depend on it