Re: select from grouped data

Поиск
Список
Период
Сортировка
От Roger Mason
Тема Re: select from grouped data
Дата
Msg-id y65v93pemxy.fsf@mun.ca
обсуждение исходный текст
Ответ на Re: select from grouped data  (Stephen Frost <sfrost@snowman.net>)
Список pgsql-novice
Stephen Frost writes:

>
> It’s generally better as it follows the SQL standard and is more flexible
> as it allows you to get top-N, as I said. DISTINCT ON has always been a
> hack and its use should be discouraged at this point.
>
> When an UPSERT capability exists in the actual standard then it’s use
> should be promoted over other hacks that various vendors have implemented
> also.

OK, thanks, I've filed this discussion away for future reference.
Meanwhile I'm having trouble getting this function to work as a
trigger.  I'll start another thread on that.

Thanks again.

Roger



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

Предыдущее
От: Stephen Frost
Дата:
Сообщение: Re: select from grouped data
Следующее
От: Roger Mason
Дата:
Сообщение: trigger fails