mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-09-08 13:59:20 +02:00
Clean up some misplaced comments in partition_join.sql regression test.
Also, add a comment explaining a test case. Back-patch to 11 where the regression test was added. Discussion: https://postgr.es/m/CAPmGK15adZPh2B%2BmGUjSOMH%2BH39ogDRWfCfm4G6jncZCAs9V_Q%40mail.gmail.com
This commit is contained in:
parent
332584da9c
commit
06b9f38d35
@ -1857,8 +1857,8 @@ SELECT t1.a, t1.c, t2.b, t2.c FROM prt1_m t1 LEFT JOIN prt2_m t2 ON t1.c = t2.c;
|
|||||||
-> Seq Scan on prt2_m_p3 t2_2
|
-> Seq Scan on prt2_m_p3 t2_2
|
||||||
(11 rows)
|
(11 rows)
|
||||||
|
|
||||||
-- partitionwise join can not be applied between tables with different
|
-- partitionwise join can not be applied for a join between list and range
|
||||||
-- partition lists
|
-- partitioned tables
|
||||||
EXPLAIN (COSTS OFF)
|
EXPLAIN (COSTS OFF)
|
||||||
SELECT t1.a, t1.c, t2.b, t2.c FROM prt1_n t1 LEFT JOIN prt2_n t2 ON (t1.c = t2.c);
|
SELECT t1.a, t1.c, t2.b, t2.c FROM prt1_n t1 LEFT JOIN prt2_n t2 ON (t1.c = t2.c);
|
||||||
QUERY PLAN
|
QUERY PLAN
|
||||||
@ -1874,6 +1874,8 @@ SELECT t1.a, t1.c, t2.b, t2.c FROM prt1_n t1 LEFT JOIN prt2_n t2 ON (t1.c = t2.c
|
|||||||
-> Seq Scan on prt1_n_p2 t1_1
|
-> Seq Scan on prt1_n_p2 t1_1
|
||||||
(9 rows)
|
(9 rows)
|
||||||
|
|
||||||
|
-- partitionwise join can not be applied between tables with different
|
||||||
|
-- partition lists
|
||||||
EXPLAIN (COSTS OFF)
|
EXPLAIN (COSTS OFF)
|
||||||
SELECT t1.a, t1.c, t2.b, t2.c FROM prt1_n t1 JOIN prt2_n t2 ON (t1.c = t2.c) JOIN plt1 t3 ON (t1.c = t3.c);
|
SELECT t1.a, t1.c, t2.b, t2.c FROM prt1_n t1 JOIN prt2_n t2 ON (t1.c = t2.c) JOIN plt1 t3 ON (t1.c = t3.c);
|
||||||
QUERY PLAN
|
QUERY PLAN
|
||||||
@ -1896,8 +1898,8 @@ SELECT t1.a, t1.c, t2.b, t2.c FROM prt1_n t1 JOIN prt2_n t2 ON (t1.c = t2.c) JOI
|
|||||||
-> Seq Scan on prt1_n_p2 t1_1
|
-> Seq Scan on prt1_n_p2 t1_1
|
||||||
(16 rows)
|
(16 rows)
|
||||||
|
|
||||||
-- partitionwise join can not be applied for a join between list and range
|
-- partitionwise join can not be applied for a join between key column and
|
||||||
-- partitioned tables
|
-- non-key column
|
||||||
EXPLAIN (COSTS OFF)
|
EXPLAIN (COSTS OFF)
|
||||||
SELECT t1.a, t1.c, t2.b, t2.c FROM prt1_n t1 FULL JOIN prt1 t2 ON (t1.c = t2.c);
|
SELECT t1.a, t1.c, t2.b, t2.c FROM prt1_n t1 FULL JOIN prt1 t2 ON (t1.c = t2.c);
|
||||||
QUERY PLAN
|
QUERY PLAN
|
||||||
|
@ -394,14 +394,17 @@ SELECT t1.a, t1.c, t2.b, t2.c FROM prt1_m t1 LEFT JOIN prt2_m t2 ON t1.a = t2.b;
|
|||||||
EXPLAIN (COSTS OFF)
|
EXPLAIN (COSTS OFF)
|
||||||
SELECT t1.a, t1.c, t2.b, t2.c FROM prt1_m t1 LEFT JOIN prt2_m t2 ON t1.c = t2.c;
|
SELECT t1.a, t1.c, t2.b, t2.c FROM prt1_m t1 LEFT JOIN prt2_m t2 ON t1.c = t2.c;
|
||||||
|
|
||||||
-- partitionwise join can not be applied between tables with different
|
|
||||||
-- partition lists
|
|
||||||
EXPLAIN (COSTS OFF)
|
|
||||||
SELECT t1.a, t1.c, t2.b, t2.c FROM prt1_n t1 LEFT JOIN prt2_n t2 ON (t1.c = t2.c);
|
|
||||||
EXPLAIN (COSTS OFF)
|
|
||||||
SELECT t1.a, t1.c, t2.b, t2.c FROM prt1_n t1 JOIN prt2_n t2 ON (t1.c = t2.c) JOIN plt1 t3 ON (t1.c = t3.c);
|
|
||||||
|
|
||||||
-- partitionwise join can not be applied for a join between list and range
|
-- partitionwise join can not be applied for a join between list and range
|
||||||
-- partitioned tables
|
-- partitioned tables
|
||||||
EXPLAIN (COSTS OFF)
|
EXPLAIN (COSTS OFF)
|
||||||
|
SELECT t1.a, t1.c, t2.b, t2.c FROM prt1_n t1 LEFT JOIN prt2_n t2 ON (t1.c = t2.c);
|
||||||
|
|
||||||
|
-- partitionwise join can not be applied between tables with different
|
||||||
|
-- partition lists
|
||||||
|
EXPLAIN (COSTS OFF)
|
||||||
|
SELECT t1.a, t1.c, t2.b, t2.c FROM prt1_n t1 JOIN prt2_n t2 ON (t1.c = t2.c) JOIN plt1 t3 ON (t1.c = t3.c);
|
||||||
|
|
||||||
|
-- partitionwise join can not be applied for a join between key column and
|
||||||
|
-- non-key column
|
||||||
|
EXPLAIN (COSTS OFF)
|
||||||
SELECT t1.a, t1.c, t2.b, t2.c FROM prt1_n t1 FULL JOIN prt1 t2 ON (t1.c = t2.c);
|
SELECT t1.a, t1.c, t2.b, t2.c FROM prt1_n t1 FULL JOIN prt1 t2 ON (t1.c = t2.c);
|
||||||
|
Loading…
Reference in New Issue
Block a user