Re: aggregate functions only for numbers? - Mailing list pgsql-hackers

From Tom Lane
Subject Re: aggregate functions only for numbers?
Date
Msg-id 21535.1013145061@sss.pgh.pa.us
Whole thread Raw
In response to aggregate functions only for numbers?  (David Eduardo Gomez Noguera <davidgn@servidor.unam.mx>)
List pgsql-hackers
David Eduardo Gomez Noguera <davidgn@servidor.unam.mx> writes:
> I wanted to make a query of name,birth date and phones, and have them
> grouped by name (so the name appeared only once) to get something like

You could probably do what you want with a custom aggregate.  This is
discussed in the mail list archives, and I think there is an article
about it on techdocs.postgresql.org.
        regards, tom lane


pgsql-hackers by date:

Previous
From: David Eduardo Gomez Noguera
Date:
Subject: aggregate functions only for numbers?
Next
From: Tom Lane
Date:
Subject: Re: 7.2 - changed array_out() - quotes vs no quotes