Re: taking a stab at agg(foo ORDER BY bar)

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: taking a stab at agg(foo ORDER BY bar)
Дата
Msg-id 8950.1254669010@sss.pgh.pa.us
обсуждение исходный текст
Ответ на taking a stab at agg(foo ORDER BY bar)  (Andrew Gierth <andrew@tao11.riddles.org.uk>)
Список pgsql-hackers
Andrew Gierth <andrew@tao11.riddles.org.uk> writes:
> This doesn't seem to present any problems as far as the syntax goes,
> and the actual execution is just a small matter of coding, but I'm not
> seeing the best way to handle it in parse-analysis. All the existing
> infrastructure for ORDER BY seems to be dependent on targetlists, which
> obviously we don't have in the context of an aggregate call.

Well, if you don't want to refactor that code, it wouldn't be difficult
to make a one-entry tlist containing the aggregate argument, and then
throw it away again after you'd extracted what you need.
        regards, tom lane


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Getting the red out (of the buildfarm)
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Using results from INSERT ... RETURNING