Re: Function Column Expansion Causes Inserts To Fail

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Function Column Expansion Causes Inserts To Fail
Дата
Msg-id 2558.1306879279@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Function Column Expansion Causes Inserts To Fail  (Merlin Moncure <mmoncure@gmail.com>)
Ответы Re: Function Column Expansion Causes Inserts To Fail
Список pgsql-general
Merlin Moncure <mmoncure@gmail.com> writes:
> I've never taken the time to really get my head around 'lateral'
> enough to say for sure if it provides clean workarounds for all the
> cases that get people into hot water.  The case that used to get me a
> lot is (the unfortunately generally under utilized) custom aggregates.

> problem:
> select bar_id, (some_agg(foo)).* from foo join bar ... group by bar_id;

Hm, really?  I'd expect that nodeAgg's attempts to collect identical
aggregate calls into one would keep you out of trouble there.  That
hack unfortunately doesn't generalize to ordinary functions ...

            regards, tom lane

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

Предыдущее
От: Merlin Moncure
Дата:
Сообщение: Re: Function Column Expansion Causes Inserts To Fail
Следующее
От: Merlin Moncure
Дата:
Сообщение: Re: Function Column Expansion Causes Inserts To Fail