Re: non-deterministic error related to MIN/MAX optimization

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: non-deterministic error related to MIN/MAX optimization
Дата
Msg-id 17092.1219717611@sss.pgh.pa.us
обсуждение исходный текст
Ответ на non-deterministic error related to MIN/MAX optimization  (Jeff Davis <pgsql@j-davis.com>)
Ответы Re: non-deterministic error related to MIN/MAX optimization  (Jeff Davis <pgsql@j-davis.com>)
Список pgsql-bugs
Jeff Davis <pgsql@j-davis.com> writes:
> => select max(a), generate_series(1,2) as g from foo order by g desc;
> ERROR:  set-valued function called in context that cannot accept a set

This strikes me as a pretty useless query, so the fact that it doesn't
work doesn't bother me.  It's mostly accidental that there are any
variants that do work, I think.  Why would you want a SRF in a sort key?

            regards, tom lane

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

Предыдущее
От: Jeff Davis
Дата:
Сообщение: non-deterministic error related to MIN/MAX optimization
Следующее
От: Craig Ringer
Дата:
Сообщение: Re: BUG #4374: pg_restore does not restore public schema comment