pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Stephen Frost <sfrost@snowman.net>
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:08:34 -0500
Message-ID: <20150210230833.GQ3854@tamriel.snowman.net> (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 (moe1234512345@gmail.com) wrote:
> PostgreSQL version: 9.3.5

Happens in master too.

> 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

The result is:

ERROR:  failed to join all relations together

Looks like an issue where GEQO and LATERAL don't get along. :/

	Thanks,

		Stephen

Attachments:

  signature.asc (application/pgp-signature, 818B) download

view thread (6+ messages)  latest in thread

Message-ID: <20150210230833.GQ3854@tamriel.snowman.net>
Permalink:  ../20150210230833.GQ3854@tamriel.snowman.net/
Also on:    postgresql.org/message-id/20150210230833.GQ3854@tamriel.snowman.net

 · 

reply

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: sfrost@snowman.net, moe1234512345@gmail.com
  Subject: Re: BUG #12760: Lateral files with more than 2 laterals
  In-Reply-To: <20150210230833.GQ3854@tamriel.snowman.net>
  References: <20150210224138.18788.34504@wrigleys.postgresql.org> <20150210230833.GQ3854@tamriel.snowman.net>

* 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