@@ -2,28 +2,144 @@ CREATE TABLE parent (
22 a int
33);
44NOTICE: DDL test: type simple, tag CREATE TABLE
5+ ALTER TABLE parent SET (fillfactor = 50);
6+ NOTICE: DDL test: type alter table, tag ALTER TABLE
7+ NOTICE: subcommand: type SET RELOPTIONS desc <NULL>
8+ ALTER TABLE parent RESET (fillfactor);
9+ NOTICE: DDL test: type alter table, tag ALTER TABLE
10+ NOTICE: subcommand: type RESET RELOPTIONS desc <NULL>
11+ ALTER TABLE parent SET UNLOGGED;
12+ NOTICE: DDL test: type alter table, tag ALTER TABLE
13+ NOTICE: subcommand: type SET UNLOGGED desc <NULL>
14+ ALTER TABLE parent SET LOGGED;
15+ NOTICE: DDL test: type alter table, tag ALTER TABLE
16+ NOTICE: subcommand: type SET LOGGED desc <NULL>
17+ CREATE INDEX parent_index ON parent(a);
18+ NOTICE: DDL test: type simple, tag CREATE INDEX
19+ ALTER TABLE parent CLUSTER ON parent_index;
20+ NOTICE: DDL test: type alter table, tag ALTER TABLE
21+ NOTICE: subcommand: type CLUSTER desc index parent_index
22+ DROP INDEX parent_index;
523CREATE TABLE child () INHERITS (parent);
624NOTICE: DDL test: type simple, tag CREATE TABLE
725CREATE TABLE grandchild () INHERITS (child);
826NOTICE: DDL test: type simple, tag CREATE TABLE
927ALTER TABLE parent ADD COLUMN b serial;
1028NOTICE: DDL test: type simple, tag CREATE SEQUENCE
1129NOTICE: DDL test: type alter table, tag ALTER TABLE
12- NOTICE: subcommand: ADD COLUMN (and recurse)
30+ NOTICE: subcommand: type ADD COLUMN (and recurse) desc column b of table parent
1331NOTICE: DDL test: type simple, tag ALTER SEQUENCE
1432ALTER TABLE parent RENAME COLUMN b TO c;
1533NOTICE: DDL test: type simple, tag ALTER TABLE
34+ -- Constraint, no recursion
35+ ALTER TABLE ONLY grandchild ADD CONSTRAINT a_pos CHECK (a > 0);
36+ NOTICE: DDL test: type alter table, tag ALTER TABLE
37+ NOTICE: subcommand: type ADD CONSTRAINT desc constraint a_pos on table grandchild
38+ -- Constraint, with recursion
1639ALTER TABLE parent ADD CONSTRAINT a_pos CHECK (a > 0);
40+ NOTICE: merging constraint "a_pos" with inherited definition
1741NOTICE: DDL test: type alter table, tag ALTER TABLE
18- NOTICE: subcommand: ADD CONSTRAINT (and recurse)
42+ NOTICE: subcommand: type ADD CONSTRAINT (and recurse) desc constraint a_pos on table parent
1943CREATE TABLE part (
2044 a int
2145) PARTITION BY RANGE (a);
2246NOTICE: DDL test: type simple, tag CREATE TABLE
2347CREATE TABLE part1 PARTITION OF part FOR VALUES FROM (1) to (100);
2448NOTICE: DDL test: type simple, tag CREATE TABLE
49+ CREATE TABLE part2 (a int);
50+ NOTICE: DDL test: type simple, tag CREATE TABLE
51+ ALTER TABLE part ATTACH PARTITION part2 FOR VALUES FROM (101) to (200);
52+ NOTICE: DDL test: type alter table, tag ALTER TABLE
53+ NOTICE: subcommand: type ATTACH PARTITION desc <NULL>
54+ ALTER TABLE part DETACH PARTITION part2;
55+ NOTICE: DDL test: type alter table, tag ALTER TABLE
56+ NOTICE: subcommand: type DETACH PARTITION desc <NULL>
57+ DROP TABLE part2;
2558ALTER TABLE part ADD PRIMARY KEY (a);
2659NOTICE: DDL test: type alter table, tag ALTER TABLE
27- NOTICE: subcommand: SET NOT NULL
28- NOTICE: subcommand: SET NOT NULL
29- NOTICE: subcommand: ADD INDEX
60+ NOTICE: subcommand: type SET NOT NULL desc column a of table part
61+ NOTICE: subcommand: type SET NOT NULL desc column a of table part1
62+ NOTICE: subcommand: type ADD INDEX desc index part_pkey
63+ ALTER TABLE parent ALTER COLUMN a SET NOT NULL;
64+ NOTICE: DDL test: type alter table, tag ALTER TABLE
65+ NOTICE: subcommand: type SET NOT NULL desc column a of table parent
66+ NOTICE: subcommand: type SET NOT NULL desc column a of table child
67+ NOTICE: subcommand: type SET NOT NULL desc column a of table grandchild
68+ ALTER TABLE parent ALTER COLUMN a DROP NOT NULL;
69+ NOTICE: DDL test: type alter table, tag ALTER TABLE
70+ NOTICE: subcommand: type DROP NOT NULL desc column a of table parent
71+ NOTICE: subcommand: type DROP NOT NULL desc column a of table child
72+ NOTICE: subcommand: type DROP NOT NULL desc column a of table grandchild
73+ ALTER TABLE parent ALTER COLUMN a SET NOT NULL;
74+ NOTICE: DDL test: type alter table, tag ALTER TABLE
75+ NOTICE: subcommand: type SET NOT NULL desc column a of table parent
76+ NOTICE: subcommand: type SET NOT NULL desc column a of table child
77+ NOTICE: subcommand: type SET NOT NULL desc column a of table grandchild
78+ ALTER TABLE parent ALTER COLUMN a ADD GENERATED ALWAYS AS IDENTITY;
79+ NOTICE: DDL test: type simple, tag CREATE SEQUENCE
80+ NOTICE: DDL test: type simple, tag ALTER SEQUENCE
81+ NOTICE: DDL test: type alter table, tag ALTER TABLE
82+ NOTICE: subcommand: type ADD IDENTITY desc column a of table parent
83+ ALTER TABLE parent ALTER COLUMN a SET GENERATED BY DEFAULT;
84+ NOTICE: DDL test: type simple, tag ALTER SEQUENCE
85+ NOTICE: DDL test: type alter table, tag ALTER TABLE
86+ NOTICE: subcommand: type SET IDENTITY desc column a of table parent
87+ ALTER TABLE parent ALTER COLUMN a DROP IDENTITY;
88+ NOTICE: DDL test: type alter table, tag ALTER TABLE
89+ NOTICE: subcommand: type DROP IDENTITY desc column a of table parent
90+ ALTER TABLE parent ALTER COLUMN a SET STATISTICS 100;
91+ NOTICE: DDL test: type alter table, tag ALTER TABLE
92+ NOTICE: subcommand: type SET STATS desc column a of table parent
93+ NOTICE: subcommand: type SET STATS desc column a of table child
94+ NOTICE: subcommand: type SET STATS desc column a of table grandchild
95+ ALTER TABLE parent ALTER COLUMN a SET STORAGE PLAIN;
96+ NOTICE: DDL test: type alter table, tag ALTER TABLE
97+ NOTICE: subcommand: type SET STORAGE desc column a of table parent
98+ NOTICE: subcommand: type SET STORAGE desc column a of table child
99+ NOTICE: subcommand: type SET STORAGE desc column a of table grandchild
100+ ALTER TABLE parent ENABLE ROW LEVEL SECURITY;
101+ NOTICE: DDL test: type alter table, tag ALTER TABLE
102+ NOTICE: subcommand: type ENABLE ROW SECURITY desc <NULL>
103+ ALTER TABLE parent NO FORCE ROW LEVEL SECURITY;
104+ NOTICE: DDL test: type alter table, tag ALTER TABLE
105+ NOTICE: subcommand: type NO FORCE ROW SECURITY desc <NULL>
106+ ALTER TABLE parent FORCE ROW LEVEL SECURITY;
107+ NOTICE: DDL test: type alter table, tag ALTER TABLE
108+ NOTICE: subcommand: type FORCE ROW SECURITY desc <NULL>
109+ ALTER TABLE parent DISABLE ROW LEVEL SECURITY;
110+ NOTICE: DDL test: type alter table, tag ALTER TABLE
111+ NOTICE: subcommand: type DISABLE ROW SECURITY desc <NULL>
112+ CREATE STATISTICS parent_stat (dependencies) ON a, c FROM parent;
113+ NOTICE: DDL test: type simple, tag CREATE STATISTICS
114+ ALTER TABLE parent ALTER COLUMN c TYPE numeric;
115+ NOTICE: DDL test: type alter table, tag ALTER TABLE
116+ NOTICE: subcommand: type ALTER COLUMN SET TYPE desc column c of table parent
117+ NOTICE: subcommand: type ALTER COLUMN SET TYPE desc column c of table child
118+ NOTICE: subcommand: type ALTER COLUMN SET TYPE desc column c of table grandchild
119+ NOTICE: subcommand: type (re) ADD STATS desc statistics object parent_stat
120+ ALTER TABLE parent ALTER COLUMN c SET DEFAULT 0;
121+ NOTICE: DDL test: type alter table, tag ALTER TABLE
122+ NOTICE: subcommand: type ALTER COLUMN SET DEFAULT desc column c of table parent
123+ NOTICE: subcommand: type ALTER COLUMN SET DEFAULT desc column c of table child
124+ NOTICE: subcommand: type ALTER COLUMN SET DEFAULT desc column c of table grandchild
125+ CREATE TABLE tbl (
126+ a int generated always as (b::int * 2) stored,
127+ b text
128+ );
129+ NOTICE: DDL test: type simple, tag CREATE TABLE
130+ ALTER TABLE tbl ALTER COLUMN a DROP EXPRESSION;
131+ NOTICE: DDL test: type alter table, tag ALTER TABLE
132+ NOTICE: subcommand: type DROP EXPRESSION desc column a of table tbl
133+ ALTER TABLE tbl ALTER COLUMN b SET COMPRESSION pglz;
134+ NOTICE: DDL test: type alter table, tag ALTER TABLE
135+ NOTICE: subcommand: type SET COMPRESSION desc column b of table tbl
136+ CREATE TYPE comptype AS (r float8);
137+ NOTICE: DDL test: type simple, tag CREATE TYPE
138+ CREATE DOMAIN dcomptype AS comptype;
139+ NOTICE: DDL test: type simple, tag CREATE DOMAIN
140+ ALTER DOMAIN dcomptype ADD CONSTRAINT c1 check ((value).r > 0);
141+ NOTICE: DDL test: type simple, tag ALTER DOMAIN
142+ ALTER TYPE comptype ALTER ATTRIBUTE r TYPE bigint;
143+ NOTICE: DDL test: type alter table, tag ALTER TYPE
144+ NOTICE: subcommand: type ALTER COLUMN SET TYPE desc column r of composite type comptype
145+ NOTICE: subcommand: type (re) ADD DOMAIN CONSTRAINT desc type dcomptype
0 commit comments