Re: Index on array element - Mailing list pgsql-general

From Randolf Richardson
Subject Re: Index on array element
Date
Msg-id Xns943E637F068A7rr8xca@200.46.204.72
Whole thread Raw
In response to Index on array element  (Steve Crawford <scrawford@pinpointresearch.com>)
Responses Re: Index on array element
List pgsql-general
>> 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]));

        Sorry, but this isn't obvious to me as arrays in a database are a new
concept for me -- why are the extra layer of parenthesis needed?

--
Randolf Richardson - rr@8x.ca
Vancouver, British Columbia, Canada

Please do not eMail me directly when responding
to my postings in the newsgroups.

pgsql-general by date:

Previous
From: Christopher Browne
Date:
Subject: Re: [OT... But couldn't resist!] Master/Slave
Next
From: Randolf Richardson
Date:
Subject: Re: Large objects [BLOB] again - general howto