@@ -87,43 +87,43 @@ statement ok
87
87
INSERT INTO t SELECT i, i+1 FROM generate_series(1,10) AS tmp(i);
88
88
89
89
onlyif config local-mixed-25.1 local-legacy-schema-changer
90
- statement error pgcode 57000 schema changes are disallowed on table "t" because it is locked
90
+ statement error pgcode 57000 this schema change is disallowed because table "t" is locked and this operation cannot automatically unlock the table
91
91
ALTER TABLE t ADD COLUMN k INT DEFAULT 30;
92
92
93
93
onlyif config local-mixed-25.1 local-legacy-schema-changer
94
- statement error pgcode 57000 schema changes are disallowed on table "t" because it is locked
94
+ statement error pgcode 57000 this schema change is disallowed because table "t" is locked and this operation cannot automatically unlock the table
95
95
ALTER TABLE t DROP COLUMN j;
96
96
97
97
onlyif config local-mixed-25.1
98
- statement error pgcode 57000 schema changes are disallowed on table "t" because it is locked
98
+ statement error pgcode 57000 this schema change is disallowed because table "t" is locked and this operation cannot automatically unlock the table
99
99
ALTER TABLE t RENAME TO t2;
100
100
101
101
onlyif config local-mixed-25.1
102
- statement error pgcode 57000 schema changes are disallowed on table "t" because it is locked
102
+ statement error pgcode 57000 this schema change is disallowed because table "t" is locked and this operation cannot automatically unlock the table
103
103
ALTER TABLE t RENAME COLUMN j TO j2;
104
104
105
105
onlyif config local-mixed-25.1
106
- statement error pgcode 57000 schema changes are disallowed on table "t" because it is locked
106
+ statement error pgcode 57000 this schema change is disallowed because table "t" is locked and this operation cannot automatically unlock the table
107
107
ALTER INDEX idx RENAME TO idx2;
108
108
109
109
onlyif config local-mixed-25.1
110
- statement error pgcode 57000 schema changes are disallowed on table "t" because it is locked
110
+ statement error pgcode 57000 this schema change is disallowed because table "t" is locked and this operation cannot automatically unlock the table
111
111
ALTER INDEX idx INVISIBLE;
112
112
113
113
onlyif config local-mixed-25.1 local-legacy-schema-changer
114
- statement error pgcode 57000 schema changes are disallowed on table "t" because it is locked
114
+ statement error pgcode 57000 this schema change is disallowed because table "t" is locked and this operation cannot automatically unlock the table
115
115
DROP INDEX idx;
116
116
117
117
onlyif config local-mixed-25.1 local-legacy-schema-changer
118
- statement error pgcode 57000 schema changes are disallowed on table "t" because it is locked
118
+ statement error pgcode 57000 this schema change is disallowed because table "t" is locked and this operation cannot automatically unlock the table
119
119
CREATE INDEX idx2 ON t(j);
120
120
121
121
statement ok
122
122
CREATE TABLE ref (a INT PRIMARY KEY, b INT)
123
123
124
124
# Locked tables cannot be referenced by foreign keys.
125
125
onlyif config local-mixed-25.1 local-legacy-schema-changer
126
- statement error pgcode 57000 schema changes are disallowed on table "t" because it is locked
126
+ statement error pgcode 57000 this schema change is disallowed because table "t" is locked and this operation cannot automatically unlock the table
127
127
ALTER TABLE ref ADD CONSTRAINT fk FOREIGN KEY (b) REFERENCES t(j);
128
128
129
129
# GRANT statements are allowed on the table, as they only affect the
0 commit comments