From: Tom Lane <tgl@sss.pgh.pa.us>
To: moe1234512345@gmail.com
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #12760: Lateral files with more than 2 laterals
Date: Tue, 10 Feb 2015 18:12:08 -0500
Message-ID: <2882.1423609928@sss.pgh.pa.us> (raw)
In-Reply-To: <20150210224138.18788.34504@wrigleys.postgresql.org>
References: <20150210224138.18788.34504@wrigleys.postgresql.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
moe1234512345@gmail.com writes:
> set geqo_threshold = 2;
> SELECT *
> FROM generate_series(1, 1) A,
> lateral ( SELECT B from generate_series(1, 1) B where B = A limit 1 ) AS
> B0,
> lateral ( SELECT C from generate_series(1, 1) C where C = A and C != B limit
> 1 ) AS C0
It's a good idea to show what problem you're seeing, though in this case
I didn't have much trouble reproducing it:
regression=# SELECT *
FROM generate_series(1, 1) A,
lateral ( SELECT B from generate_series(1, 1) B where B = A limit 1 ) AS B0,
lateral ( SELECT C from generate_series(1, 1) C where C = A and C = B limit 1 ) AS C0;
ERROR: failed to join all relations together
Will look, thanks for the report!
regards, tom lane
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: tgl@sss.pgh.pa.us, moe1234512345@gmail.com
Subject: Re: BUG #12760: Lateral files with more than 2 laterals
In-Reply-To: <2882.1423609928@sss.pgh.pa.us>
References: <20150210224138.18788.34504@wrigleys.postgresql.org> <2882.1423609928@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox