@@ -75,14 +75,14 @@ Referenced by:
7575 TABLE "tab1_fk" CONSTRAINT "tab1_fk_i_fkey2" FOREIGN KEY (i) REFERENCES tab1(i)
7676Number of partitions: 4 (Use \d+ to list them.)
7777
78- EXPLAIN SELECT * FROM tab1;
79- QUERY PLAN
80- ---------------------------------------------------------------------------------
81- Append (cost=0.00..162.40 rows=8160 width=12)
82- -> Seq Scan on tab1_new_part_1 tab1_1 (cost=0.00..30.40 rows=2040 width=12)
83- -> Seq Scan on tab1_new_part_2 tab1_2 (cost=0.00..30.40 rows=2040 width=12)
84- -> Seq Scan on tab1_new_part_3 tab1_3 (cost=0.00..30.40 rows=2040 width=12)
85- -> Seq Scan on tab1_new_part_4 tab1_4 (cost=0.00..30.40 rows=2040 width=12)
78+ EXPLAIN (COSTS off) SELECT * FROM tab1;
79+ QUERY PLAN
80+ ------------------------------------------
81+ Append
82+ -> Seq Scan on tab1_new_part_1 tab1_1
83+ -> Seq Scan on tab1_new_part_2 tab1_2
84+ -> Seq Scan on tab1_new_part_3 tab1_3
85+ -> Seq Scan on tab1_new_part_4 tab1_4
8686(5 rows)
8787
8888-- Check that the contents has not changed.
@@ -325,7 +325,6 @@ Foreign-key constraints:
325325 "tab1_fk_i_fkey" FOREIGN KEY (i) REFERENCES tab1_pk(i)
326326
327327SELECT rewrite_table('tab1_fk', 'tab1_fk_new', 'tab1_fk_orig');
328- NOTICE: FOREIGN KEY with NOT VALID option cannot be added to partitioned table
329328 rewrite_table
330329---------------
331330
@@ -339,6 +338,8 @@ NOTICE: FOREIGN KEY with NOT VALID option cannot be added to partitioned table
339338Partition key: RANGE (i)
340339Indexes:
341340 "tab1_fk_new_pkey" PRIMARY KEY, btree (i)
341+ Foreign-key constraints:
342+ "tab1_fk_i_fkey2" FOREIGN KEY (i) REFERENCES tab1_pk(i) NOT VALID
342343Number of partitions: 1 (Use \d+ to list them.)
343344
344345-- Check if sequence on the target table is synchronized with that of the
0 commit comments