pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Olivier Ertz <ertz@illite.u-strasbg.fr>
Cc: pgsql-sql@postgreSQL.org <pgsql-sql@postgreSQL.org>
Subject: Re: [SQL] Array of integer
Date: Thu, 05 Aug 1999 12:06:18 -0400
Message-ID: <4810.933869178@sss.pgh.pa.us> (raw)
In-Reply-To: <37A9B252.43DE2311@illite.u-strasbg.fr>

Olivier Ertz <ertz@illite.u-strasbg.fr> writes:
> 	in pg_group, grolist give the list of the members of the group
> how can i extract with a select request, not the whole list, but first
> the one, the second, etc ...  like :
> 	select grolist[i] from pg_group where ...
> 	i is varying from 0..N

In releases through 6.5 you have to write array references as a fully
qualified name:
	select pg_group.grolist[i] from pg_group where ...

This is fixed for 6.6...

			regards, tom lane



view thread (2+ messages)

Message-ID: <4810.933869178@sss.pgh.pa.us>
Permalink:  ../4810.933869178@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/4810.933869178@sss.pgh.pa.us

 · 

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: tgl@sss.pgh.pa.us, ertz@illite.u-strasbg.fr
  Subject: Re: [SQL] Array of integer
  In-Reply-To: <4810.933869178@sss.pgh.pa.us>
  References: <37A9B252.43DE2311@illite.u-strasbg.fr> <4810.933869178@sss.pgh.pa.us>

* 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