aboutsummaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
Diffstat (limited to 'src/test')
-rw-r--r--src/test/regress/expected/join.out17
-rw-r--r--src/test/regress/sql/join.sql7
2 files changed, 24 insertions, 0 deletions
diff --git a/src/test/regress/expected/join.out b/src/test/regress/expected/join.out
index 35476a0d126..cd1163d039b 100644
--- a/src/test/regress/expected/join.out
+++ b/src/test/regress/expected/join.out
@@ -2625,6 +2625,23 @@ select * from int8_tbl t1
(7 rows)
explain (costs off)
+select * from int8_tbl t1
+ left join int8_tbl t2 on true
+ left join lateral
+ (select t2.q1 from int8_tbl t3) s
+ on t2.q1 = 1;
+ QUERY PLAN
+-------------------------------------------
+ Nested Loop Left Join
+ -> Seq Scan on int8_tbl t1
+ -> Materialize
+ -> Nested Loop Left Join
+ Join Filter: (t2.q1 = 1)
+ -> Seq Scan on int8_tbl t2
+ -> Seq Scan on int8_tbl t3
+(7 rows)
+
+explain (costs off)
select * from onek t1
left join onek t2 on true
left join lateral
diff --git a/src/test/regress/sql/join.sql b/src/test/regress/sql/join.sql
index d8d9579092d..7ca737eec0f 100644
--- a/src/test/regress/sql/join.sql
+++ b/src/test/regress/sql/join.sql
@@ -529,6 +529,13 @@ select * from int8_tbl t1
on t2.q1 = 1;
explain (costs off)
+select * from int8_tbl t1
+ left join int8_tbl t2 on true
+ left join lateral
+ (select t2.q1 from int8_tbl t3) s
+ on t2.q1 = 1;
+
+explain (costs off)
select * from onek t1
left join onek t2 on true
left join lateral