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

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: BUG #12760: Lateral files with more than 2 laterals
Дата
Msg-id 2882.1423609928@sss.pgh.pa.us
обсуждение исходный текст
Ответ на BUG #12760: Lateral files with more than 2 laterals  (moe1234512345@gmail.com)
Список pgsql-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

В списке pgsql-bugs по дате отправления:

Предыдущее
От: Stephen Frost
Дата:
Сообщение: Re: BUG #12760: Lateral files with more than 2 laterals
Следующее
От: Tom Lane
Дата:
Сообщение: Re: BUG #12760: Lateral files with more than 2 laterals