DONT_CARE Aggregate

From: Robert James <srobertjames(at)gmail(dot)com>
To: Postgres General <pgsql-general(at)postgresql(dot)org>
Subject: DONT_CARE Aggregate
Date: 2012-12-20 01:28:22
Message-ID: CAGYyBgjmaBjNBJ_+dp83ik9Lr=WkKKEA=_zoYVQbm_8g-BW0fQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Is there an aggregate that will return an arbitrary instance? That is,
not necessarily the max or min, just any one? (Which might perform
better than max or min)

More importantly:
Is there one which will return an arbitrary instance as long as it's not NULL

And even better:
An aggregate which will return the first instance that meets a certain
predicate?

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Adrian Klaver 2012-12-20 02:34:20 Re: pg_xlog is getting bigger
Previous Message Tom Lane 2012-12-20 01:06:37 Re: pg_xlog is getting bigger