diff options
| author | Tom Lane | 2012-08-30 16:56:50 +0000 |
|---|---|---|
| committer | Tom Lane | 2012-08-30 16:56:50 +0000 |
| commit | d1a4db8d25ec53fd17e99168bc5efa0b16ef6fed (patch) | |
| tree | 588664bf187cc3124312d55c7f836fe71533ca25 /src/test | |
| parent | e1a6375d8f3a11f3447bea10883a4cbe1c5d3ec9 (diff) | |
Improve EXPLAIN's ability to cope with LATERAL references in plans.
push_child_plan/pop_child_plan didn't bother to adjust the "ancestors"
list of parent plan nodes when descending to a child plan node. I think
this was okay when it was written, but it's not okay in the presence of
LATERAL references, since a subplan node could easily be returning a
LATERAL value back up to the same nestloop node that provides the value.
Per changed regression test results, the omission led to failure to
interpret Param nodes that have perfectly good interpretations.
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/regress/expected/join.out | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/regress/expected/join.out b/src/test/regress/expected/join.out index 2e54ede8387..c2e83d7f8bb 100644 --- a/src/test/regress/expected/join.out +++ b/src/test/regress/expected/join.out @@ -3172,7 +3172,7 @@ explain (costs off) Nested Loop -> Seq Scan on int8_tbl a -> Hash Left Join - Hash Cond: (x.q2 = ($0)) + Hash Cond: (x.q2 = (a.q1)) -> Seq Scan on int8_tbl x -> Hash -> Seq Scan on int4_tbl y |
