Re: [GENERAL] Index on array element

2003-11-26 Thread Tom Lane
Randolf Richardson <[EMAIL PROTECTED]> 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])); > Sorry, but this isn't obvious to me as arrays in a database are a new > concept for

Re: [GENERAL] Index on array element

2003-11-24 Thread Tom Lane
Steve Crawford <[EMAIL PROTECTED]> 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 ---(end of broadcast)---

[GENERAL] Index on array element

2003-11-24 Thread Steve Crawford
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]);