Index on array element - Mailing list pgsql-general

From Steve Crawford
Subject Index on array element
Date
Msg-id 200311241655.07430.scrawford@pinpointresearch.com
Whole thread Raw
Responses Re: Index on array element
Re: Index on array element
List pgsql-general
How can I create an index on an array element? I seem to recall having
done this in the past but I don't recall how.

steve=# \d foo
       Table "public.foo"
  Column   |  Type  | Modifiers
-----------+--------+-----------
 textarray | text[] |

steve=# create index foodex on foo (textarray[3]);
ERROR:  parser: parse error at or near "[" at character 38

steve=# select version();
PostgreSQL 7.3.2 on i686-pc-linux-gnu, compiled by GCC gcc (GCC) 3.3
20030226 (prerelease) (SuSE Linux)

Cheers,
Steve


pgsql-general by date:

Previous
From: Alex Satrapa
Date:
Subject: Re: Where is Postgesql ? - MYSQL SURPRISES WITH MAXDB /
Next
From: "Jaime Casanova"
Date:
Subject: Re: retrieve statement from catalogs