From: | Robert James <srobertjames(at)gmail(dot)com> |
---|---|
To: | Sergey Konoplev <gray(dot)ru(at)gmail(dot)com> |
Cc: | Postgres General <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: DONT_CARE Aggregate |
Date: | 2012-12-20 13:45:09 |
Message-ID: | CAGYyBggdErerANnvR9Bqrk8ORmSHnZpfAVz=Xg+XfEeU6b6mpw@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Sergey - That's an interesting option, but I'm not sure how to use it
as an aggregate. Could you give an example?
On 12/20/12, Sergey Konoplev <gray(dot)ru(at)gmail(dot)com> wrote:
> On Wed, Dec 19, 2012 at 5:28 PM, Robert James <srobertjames(at)gmail(dot)com>
> wrote:
>> And even better:
>> An aggregate which will return the first instance that meets a certain
>> predicate?
>
> Take a look at DISTINCT ON.
>
> --
> Sergey Konoplev
> Database and Software Architect
> http://www.linkedin.com/in/grayhemp
>
> Phones:
> USA +1 415 867 9984
> Russia, Moscow +7 901 903 0499
> Russia, Krasnodar +7 988 888 1979
>
> Skype: gray-hemp
> Jabber: gray(dot)ru(at)gmail(dot)com
>
From | Date | Subject | |
---|---|---|---|
Next Message | Vick Khera | 2012-12-20 13:56:23 | Re: Any experience with Drobo SAN and PG? |
Previous Message | Heikki Linnakangas | 2012-12-20 12:50:12 | Re: [COMMITTERS] pgsql: Allow a streaming replication standby to follow a timeline switc |