@@ -41,25 +41,6 @@ ALTER TABLE parent ADD CONSTRAINT a_pos CHECK (a > 0);
41
41
NOTICE: merging constraint "a_pos" with inherited definition
42
42
NOTICE: DDL test: type alter table, tag ALTER TABLE
43
43
NOTICE: subcommand: type ADD CONSTRAINT (and recurse) desc constraint a_pos on table parent
44
- CREATE TABLE part (
45
- a int
46
- ) PARTITION BY RANGE (a);
47
- NOTICE: DDL test: type simple, tag CREATE TABLE
48
- CREATE TABLE part1 PARTITION OF part FOR VALUES FROM (1) to (100);
49
- NOTICE: DDL test: type simple, tag CREATE TABLE
50
- CREATE TABLE part2 (a int);
51
- NOTICE: DDL test: type simple, tag CREATE TABLE
52
- ALTER TABLE part ATTACH PARTITION part2 FOR VALUES FROM (101) to (200);
53
- NOTICE: DDL test: type alter table, tag ALTER TABLE
54
- NOTICE: subcommand: type ATTACH PARTITION desc table part2
55
- ALTER TABLE part DETACH PARTITION part2;
56
- NOTICE: DDL test: type alter table, tag ALTER TABLE
57
- NOTICE: subcommand: type DETACH PARTITION desc table part2
58
- DROP TABLE part2;
59
- ALTER TABLE part ADD PRIMARY KEY (a);
60
- NOTICE: DDL test: type alter table, tag ALTER TABLE
61
- NOTICE: subcommand: type ADD CONSTRAINT (and recurse) desc constraint part_a_not_null on table part
62
- NOTICE: subcommand: type ADD INDEX desc index part_pkey
63
44
ALTER TABLE parent ALTER COLUMN a SET NOT NULL;
64
45
NOTICE: DDL test: type alter table, tag ALTER TABLE
65
46
NOTICE: subcommand: type SET NOT NULL (and recurse) desc constraint parent_a_not_null on table parent
@@ -117,11 +98,33 @@ NOTICE: DDL test: type alter table, tag ALTER TABLE
117
98
NOTICE: subcommand: type ALTER COLUMN SET DEFAULT desc column c of table parent
118
99
NOTICE: subcommand: type ALTER COLUMN SET DEFAULT desc column c of table child
119
100
NOTICE: subcommand: type ALTER COLUMN SET DEFAULT desc column c of table grandchild
101
+ CREATE TABLE part (
102
+ a int
103
+ ) PARTITION BY RANGE (a);
104
+ NOTICE: DDL test: type simple, tag CREATE TABLE
105
+ CREATE TABLE part1 PARTITION OF part FOR VALUES FROM (1) to (100);
106
+ NOTICE: DDL test: type simple, tag CREATE TABLE
107
+ CREATE TABLE part2 (a int);
108
+ NOTICE: DDL test: type simple, tag CREATE TABLE
109
+ ALTER TABLE part ATTACH PARTITION part2 FOR VALUES FROM (101) to (200);
110
+ NOTICE: DDL test: type alter table, tag ALTER TABLE
111
+ NOTICE: subcommand: type ATTACH PARTITION desc table part2
112
+ ALTER TABLE part DETACH PARTITION part2;
113
+ NOTICE: DDL test: type alter table, tag ALTER TABLE
114
+ NOTICE: subcommand: type DETACH PARTITION desc table part2
115
+ DROP TABLE part2;
116
+ ALTER TABLE part ADD PRIMARY KEY (a);
117
+ NOTICE: DDL test: type alter table, tag ALTER TABLE
118
+ NOTICE: subcommand: type ADD CONSTRAINT (and recurse) desc constraint part_a_not_null on table part
119
+ NOTICE: subcommand: type ADD INDEX desc index part_pkey
120
120
CREATE TABLE tbl (
121
121
a int generated always as (b::int * 2) stored,
122
122
b text
123
123
);
124
124
NOTICE: DDL test: type simple, tag CREATE TABLE
125
+ ALTER TABLE tbl ALTER COLUMN a SET EXPRESSION AS (b::int * 3);
126
+ NOTICE: DDL test: type alter table, tag ALTER TABLE
127
+ NOTICE: subcommand: type SET EXPRESSION desc column a of table tbl
125
128
ALTER TABLE tbl ALTER COLUMN a DROP EXPRESSION;
126
129
NOTICE: DDL test: type alter table, tag ALTER TABLE
127
130
NOTICE: subcommand: type DROP EXPRESSION desc column a of table tbl
0 commit comments