Re: PostgreSQL query with FULL OUTER JOIN and subquery using column of GROUP BY expression ERROR: subquery uses ungrouped column from outer query

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: PostgreSQL query with FULL OUTER JOIN and subquery using column of GROUP BY expression ERROR: subquery uses ungrouped column from outer query
Дата
Msg-id 532251.1772059483@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: PostgreSQL query with FULL OUTER JOIN and subquery using column of GROUP BY expression ERROR: subquery uses ungrouped column from outer query  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
I wrote:
> "David G. Johnston" <david.g.johnston@gmail.com> writes:
>> My first impression is that this is a bug.  Especially since the query
>> apparently executes in both left-join and right-join modes.

> Well, it's a longstanding deficiency anyway.
> ...
> Still, it is annoying.  I wonder if there's a way to do it without
> either a large amount of new code or exponential time spent
> trying useless subexpression matches...

I've posted a draft fix for that at

https://www.postgresql.org/message-id/flat/531183.1772058731%40sss.pgh.pa.us

            regards, tom lane



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