Re: Arrays advanced usage

From: Stephan Szabo <sszabo(at)megazone23(dot)bigpanda(dot)com>
To: Florent Guillaume <florent(dot)guillaume(at)mail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Arrays advanced usage
Date: 2001-01-22 21:00:25
Message-ID: Pine.BSF.4.21.0101221259480.15835-100000@megazone23.bigpanda.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


On Fri, 19 Jan 2001, Florent Guillaume wrote:

> I just discoverred arrays, and I'm wondering if there's a way to do,
> given table t1 (v int4, a int4[]), a query that does in effect :
> "select v, i from t1 where EXISTS i SUCHTHAT a[i] = 45;"
>
> I know I can do it with a separate table and a join, but this would
> be much nicer.

Check out the code in contrib/array which provides extra
functions/operators for various common array types.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Peter Eisentraut 2001-01-22 21:14:36 Re: RE: couple of general questions
Previous Message Florent Guillaume 2001-01-22 20:56:04 Re: is PG able to handle a >500 GB Database?