summaryrefslogtreecommitdiff
path: root/src/test/regress/expected/join.out
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2003-08-07 19:20:24 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2003-08-07 19:20:24 +0000
commitecbed6e1b9a373d016c4afb3b674c88e86c1fc28 (patch)
tree594b8944544d0cb1beb58a20ea8d5badd5b7f59c /src/test/regress/expected/join.out
parentd862045dfc9ae86358a38749863a5f94f7c2e834 (diff)
downloadpostgresql-ecbed6e1b9a373d016c4afb3b674c88e86c1fc28.tar.gz
create_unique_plan() should not discard existing output columns of the
subplan it starts with, as they may be needed at upper join levels. See comments added to code for the non-obvious reason why. Per bug report from Robert Creager.
Diffstat (limited to 'src/test/regress/expected/join.out')
-rw-r--r--src/test/regress/expected/join.out12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/test/regress/expected/join.out b/src/test/regress/expected/join.out
index 6ee15172ac..2ce1d7b177 100644
--- a/src/test/regress/expected/join.out
+++ b/src/test/regress/expected/join.out
@@ -2128,6 +2128,18 @@ on (x1 = xx1) where (xx2 is not null);
(3 rows)
--
+-- regression test: check for bug with propagation of implied equality
+-- to outside an IN
+--
+select count(*) from tenk1 a where unique1 in
+ (select unique1 from tenk1 b join tenk1 c using (unique1)
+ where b.unique2 = 42);
+ count
+-------
+ 1
+(1 row)
+
+--
-- Clean up
--
DROP TABLE t1;