Re: [GENERAL] searching in array

From: Chris Bitmead <chris(dot)bitmead(at)bigfoot(dot)com>
To: Peter Keller <peter(dot)keller(at)bvv(dot)bayern(dot)de>
Cc: pgsql-general(at)postgreSQL(dot)org
Subject: Re: [GENERAL] searching in array
Date: 1999-05-31 13:23:34
Message-ID: 37528D56.C97DCA99@bigfoot.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Peter Keller wrote:
>
> Hi!
> I'm using PostgreSQL 6.5b1 and I have two questions:
> 1. Is it possible to search for an element in an array even though I
> don't know at which position the element is.

Sort of, but you need to load some extension operators available in the
contrib directory.

> 2. If this is possible how can I have a fast access. Can I create an
> index, so that the search isn't sequential any more?

No, but since you could never have more than 2000 of them, it shouldn't
be too bad.

> Thanks,
> Peter
> --
> Peter Keller Tel: 089-2190-2594
> Vermessungsrat z.A. Fax: 089-2190-2459
> mailto:Peter(dot)Keller(at)bvv(dot)bayern(dot)de
> ..............................................................
> Bezirksfinanzdirektion München - Vermessungsabteilung
> Alexandrastr. 3
> 80538 München
> Zimmer: 404
> www: http://www.bayern.de/vermessung/
> --

--
Chris Bitmead
http://www.bigfoot.com/~chris.bitmead
mailto:chris(dot)bitmead(at)bigfoot(dot)com

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Gregory Maxwell 1999-05-31 15:36:19 Re: [GENERAL] Upgrading from 6.3->6.4.2/6.5b1 possible
Previous Message Howie 1999-05-31 13:11:12 Re: [GENERAL] bug in 6.4.2?