pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Frank Bax <fbax@sympatico.ca>
To: pgsql-sql@postgresql.org
Subject: Re: How to get a result in one row
Date: Wed, 21 Jun 2006 15:15:20 -0400
Message-ID: <5.2.1.1.0.20060621150539.04cac7a0@pop6.sympatico.ca> (raw)
In-Reply-To: <20060621182441.85807.qmail@web31803.mail.mud.yahoo.com>
References: <5.2.1.1.0.20060621140420.04580180@pop6.sympatico.ca>

At 02:24 PM 6/21/06, Richard Broersma Jr wrote:

> > >I'd like to get the result in only one row:
> > >    id | nick
> > >------+------
> > >22192 | A,T
> > This question is in the archives (probably more than once).  The answer 
> is...>
> > Read the online docs about aggregate functions.  There is an example that
> > does (almost) exactly what you are asking.
>
>Where you referring to the tread regarding the LTREE contrib module for 
>postgresql?
>http://archives.postgresql.org/pgsql-general/2006-06/msg00745.php
>
>I know I've seen this done using cursors in PL-PGSQL, but I would be 
>interested if there was a
>solution with pre-existing aggregates.


I was referring to threads like:
         http://archives.postgresql.org/pgsql-sql/2004-10/msg00124.php
and threads on 9.Feb.2006 and 11.Mar.2006, which are on my system, but not 
on the above archive site.  The various threads point to this page:
         http://www.postgresql.org/docs/8.1/interactive/xaggr.html
Specifically the "array_accum" function on that page.







view thread (4+ messages)

Message-ID: <5.2.1.1.0.20060621150539.04cac7a0@pop6.sympatico.ca>
Permalink:  ../5.2.1.1.0.20060621150539.04cac7a0@pop6.sympatico.ca/
Also on:    postgresql.org/message-id/5.2.1.1.0.20060621150539.04cac7a0@pop6.sympatico.ca

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-sql@postgresql.org
  Cc: fbax@sympatico.ca
  Subject: Re: How to get a result in one row
  In-Reply-To: <5.2.1.1.0.20060621150539.04cac7a0@pop6.sympatico.ca>
  References: <5.2.1.1.0.20060621140420.04580180@pop6.sympatico.ca> <5.2.1.1.0.20060621150539.04cac7a0@pop6.sympatico.ca>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox