mirror of https://github.com/citusdata/citus.git
Adds test for COPY FROM failure in Citus foreign tables (#7160)
parent
b8bded6454
commit
05443a77ad
|
@ -38,6 +38,9 @@ SELECT partmethod, repmodel FROM pg_dist_partition WHERE logicalrelid = 'foreign
|
|||
n | s
|
||||
(1 row)
|
||||
|
||||
-- COPY FROM doesn't work for Citus foreign tables
|
||||
COPY foreign_table FROM stdin;
|
||||
ERROR: cannot PREPARE a transaction that has operated on postgres_fdw foreign tables
|
||||
CREATE TABLE parent_for_foreign_tables (
|
||||
project_id integer
|
||||
) PARTITION BY HASH (project_id);
|
||||
|
|
|
@ -37,6 +37,11 @@ CREATE FOREIGN TABLE foreign_table (
|
|||
--verify
|
||||
SELECT partmethod, repmodel FROM pg_dist_partition WHERE logicalrelid = 'foreign_table'::regclass ORDER BY logicalrelid;
|
||||
|
||||
-- COPY FROM doesn't work for Citus foreign tables
|
||||
COPY foreign_table FROM stdin;
|
||||
1 1foo 2
|
||||
\.
|
||||
|
||||
CREATE TABLE parent_for_foreign_tables (
|
||||
project_id integer
|
||||
) PARTITION BY HASH (project_id);
|
||||
|
|
Loading…
Reference in New Issue