Re: pgsql: Avoid mislabeling of lateral references when pulling up a subque

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: pgsql: Avoid mislabeling of lateral references when pulling up a subque
Дата
Msg-id 1822436.1733242832@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: pgsql: Avoid mislabeling of lateral references when pulling up a subque  (Andrei Lepikhov <lepihov@gmail.com>)
Список pgsql-committers
Andrei Lepikhov <lepihov@gmail.com> writes:
> Pardon the noise, but I'm curious why the optimiser must choose NestLoop 
> in the case of lateral reference.

To pass down the current outer row's value of the lateral reference.

> It would be nice to provide alternatives. Because now we have some 
> corner cases.

That's a fairly bizarre case, and I'm not at all convinced that
the old plan was correct.

            regards, tom lane



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