@@ -75,14 +75,14 @@ Referenced by:
75
75
TABLE "tab1_fk" CONSTRAINT "tab1_fk_i_fkey2" FOREIGN KEY (i) REFERENCES tab1(i)
76
76
Number of partitions: 4 (Use \d+ to list them.)
77
77
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
86
86
(5 rows)
87
87
88
88
-- Check that the contents has not changed.
@@ -325,7 +325,6 @@ Foreign-key constraints:
325
325
"tab1_fk_i_fkey" FOREIGN KEY (i) REFERENCES tab1_pk(i)
326
326
327
327
SELECT rewrite_table('tab1_fk', 'tab1_fk_new', 'tab1_fk_orig');
328
- NOTICE: FOREIGN KEY with NOT VALID option cannot be added to partitioned table
329
328
rewrite_table
330
329
---------------
331
330
@@ -339,6 +338,8 @@ NOTICE: FOREIGN KEY with NOT VALID option cannot be added to partitioned table
339
338
Partition key: RANGE (i)
340
339
Indexes:
341
340
"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
342
343
Number of partitions: 1 (Use \d+ to list them.)
343
344
344
345
-- Check if sequence on the target table is synchronized with that of the
0 commit comments