Re: Index on array element

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Steve Crawford <scrawford(at)pinpointresearch(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Index on array element
Date: 2003-11-25 06:00:56
Message-ID: 25241.1069740056@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Steve Crawford <scrawford(at)pinpointresearch(dot)com> writes:
> How can I create an index on an array element?

You need 7.4 and an extra layer of parentheses:

create index foodex on foo ((textarray[3]));

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Shridhar Daithankar 2003-11-25 07:02:52 Re: The new autovacuum tool
Previous Message Randolf Richardson 2003-11-25 05:58:22 Re: Humor me: Postgresql vs. MySql (esp. licensing)