Re: BUG #12760: Lateral files with more than 2 laterals

From: Stephen Frost <sfrost(at)snowman(dot)net>
To: moe1234512345(at)gmail(dot)com
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #12760: Lateral files with more than 2 laterals
Date: 2015-02-10 23:08:34
Message-ID: 20150210230833.GQ3854@tamriel.snowman.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

* moe1234512345(at)gmail(dot)com (moe1234512345(at)gmail(dot)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

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2015-02-10 23:12:08 Re: BUG #12760: Lateral files with more than 2 laterals
Previous Message Tom Lane 2015-02-10 23:04:44 Re: BUG #12756: performance issues with xml-data