FDW options: (delimiter ',', quote '"', "be quoted" 'value')
Inherits: fd_pt1
--- TRUNCATE doesn't work on foreign tables, either directly or recursively
-TRUNCATE ft2; -- ERROR
-ERROR: foreign-data wrapper "dummy" has no handler
-TRUNCATE fd_pt1; -- ERROR
-ERROR: foreign-data wrapper "dummy" has no handler
DROP TABLE fd_pt1 CASCADE;
NOTICE: drop cascades to foreign table ft2
-- IMPORT FOREIGN SCHEMA
ERROR: child table is missing constraint "fd_pt2chk1"
ALTER FOREIGN TABLE fd_pt2_1 ADD CONSTRAINT fd_pt2chk1 CHECK (c1 > 0);
ALTER TABLE fd_pt2 ATTACH PARTITION fd_pt2_1 FOR VALUES IN (1);
--- TRUNCATE doesn't work on foreign tables, either directly or recursively
-TRUNCATE fd_pt2_1; -- ERROR
-ERROR: foreign-data wrapper "dummy" has no handler
-TRUNCATE fd_pt2; -- ERROR
-ERROR: foreign-data wrapper "dummy" has no handler
DROP FOREIGN TABLE fd_pt2_1;
DROP TABLE fd_pt2;
-- foreign table cannot be part of partition tree made of temporary
\d+ fd_pt1
\d+ ft2
--- TRUNCATE doesn't work on foreign tables, either directly or recursively
-TRUNCATE ft2; -- ERROR
-TRUNCATE fd_pt1; -- ERROR
-
DROP TABLE fd_pt1 CASCADE;
-- IMPORT FOREIGN SCHEMA
ALTER FOREIGN TABLE fd_pt2_1 ADD CONSTRAINT fd_pt2chk1 CHECK (c1 > 0);
ALTER TABLE fd_pt2 ATTACH PARTITION fd_pt2_1 FOR VALUES IN (1);
--- TRUNCATE doesn't work on foreign tables, either directly or recursively
-TRUNCATE fd_pt2_1; -- ERROR
-TRUNCATE fd_pt2; -- ERROR
-
DROP FOREIGN TABLE fd_pt2_1;
DROP TABLE fd_pt2;