You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -3508,50 +3512,47 @@ ALTER TABLE old_system_table DROP COLUMN othercol;
3508
3512
DROP TABLE old_system_table;
3509
3513
-- set logged
3510
3514
CREATE UNLOGGED TABLE unlogged1(f1 SERIAL PRIMARY KEY, f2 TEXT);
3515
+
ERROR: unlogged sequences are not supported
3511
3516
-- check relpersistence of an unlogged table
3512
3517
SELECT relname, relkind, relpersistence FROM pg_class WHERE relname ~ '^unlogged1'
3513
3518
UNION ALL
3514
3519
SELECT 'toast table', t.relkind, t.relpersistence FROM pg_class r JOIN pg_class t ON t.oid = r.reltoastrelid WHERE r.relname ~ '^unlogged1'
3515
3520
UNION ALL
3516
3521
SELECT 'toast index', ri.relkind, ri.relpersistence FROM pg_class r join pg_class t ON t.oid = r.reltoastrelid JOIN pg_index i ON i.indrelid = t.oid JOIN pg_class ri ON ri.oid = i.indexrelid WHERE r.relname ~ '^unlogged1'
WARNING: referential integrity (FOREIGN KEY) constraints are not supported in Apache Cloudberry, will not be enforced
3530
+
ERROR: unlogged sequences are not supported
3531
3531
ALTER TABLE unlogged3 SET LOGGED; -- skip self-referencing foreign key
3532
+
ERROR: relation "unlogged3" does not exist
3532
3533
ALTER TABLE unlogged2 SET LOGGED; -- fails because a foreign key to an unlogged table exists
3533
-
ERROR: could not change table "unlogged2" to logged because it references unlogged table "unlogged1"
3534
+
ERROR: relation "unlogged2" does not exist
3534
3535
ALTER TABLE unlogged1 SET LOGGED;
3536
+
ERROR: relation "unlogged1" does not exist
3535
3537
-- check relpersistence of an unlogged table after changing to permanent
3536
3538
SELECT relname, relkind, relpersistence FROM pg_class WHERE relname ~ '^unlogged1'
3537
3539
UNION ALL
3538
3540
SELECT 'toast table', t.relkind, t.relpersistence FROM pg_class r JOIN pg_class t ON t.oid = r.reltoastrelid WHERE r.relname ~ '^unlogged1'
3539
3541
UNION ALL
3540
3542
SELECT 'toast index', ri.relkind, ri.relpersistence FROM pg_class r join pg_class t ON t.oid = r.reltoastrelid JOIN pg_index i ON i.indrelid = t.oid JOIN pg_class ri ON ri.oid = i.indexrelid WHERE r.relname ~ '^unlogged1'
3541
3543
ORDER BY relname;
3542
-
relname | relkind | relpersistence
3543
-
------------------+---------+----------------
3544
-
toast index | i | p
3545
-
toast table | t | p
3546
-
unlogged1 | r | p
3547
-
unlogged1_f1_seq | S | p
3548
-
unlogged1_pkey | i | p
3549
-
(5 rows)
3544
+
relname | relkind | relpersistence
3545
+
---------+---------+----------------
3546
+
(0 rows)
3550
3547
3551
3548
ALTER TABLE unlogged1 SET LOGGED; -- silently do nothing
3549
+
ERROR: relation "unlogged1" does not exist
3552
3550
DROP TABLE unlogged3;
3551
+
ERROR: table "unlogged3" does not exist
3553
3552
DROP TABLE unlogged2;
3553
+
ERROR: table "unlogged2" does not exist
3554
3554
DROP TABLE unlogged1;
3555
+
ERROR: table "unlogged1" does not exist
3555
3556
-- set unlogged
3556
3557
CREATE TABLE logged1(f1 SERIAL PRIMARY KEY, f2 TEXT);
3557
3558
-- check relpersistence of a permanent table
@@ -3589,7 +3590,7 @@ ORDER BY relname;
3589
3590
relname | relkind | relpersistence
3590
3591
----------------+---------+----------------
3591
3592
logged1 | r | u
3592
-
logged1_f1_seq | S | p
3593
+
logged1_f1_seq | S | u
3593
3594
logged1_pkey | i | u
3594
3595
toast index | i | u
3595
3596
toast table | t | u
@@ -4244,7 +4245,8 @@ DROP TABLE fail_part;
4244
4245
-- fails with incorrect object type
4245
4246
CREATE VIEW at_v1 AS SELECT 1 as a;
4246
4247
ALTER TABLE at_v1 ATTACH PARTITION dummy default;
4247
-
ERROR: "at_v1" is not a table or partitioned index
4248
+
ERROR: ALTER action ATTACH PARTITION cannot be performed on relation "at_v1"
4249
+
DETAIL: This operation is not supported for views.
0 commit comments