Re: select from grouped data - Mailing list pgsql-novice

From Roger Mason
Subject Re: select from grouped data
Date
Msg-id y65v93pemxy.fsf@mun.ca
Whole thread Raw
In response to Re: select from grouped data  (Stephen Frost <sfrost@snowman.net>)
List 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 by date:

Previous
From: Stephen Frost
Date:
Subject: Re: select from grouped data
Next
From: Roger Mason
Date:
Subject: trigger fails