Search Postgresql Archives

Create index on array element?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I guess one cannot create an index on an element of an array?

test=> create table test ( ordinal int[] );
CREATE TABLE
test=> create unique index x1 on test ( ordinal[1] );
ERROR:  syntax error at or near ")" at character 45
LINE 1: create unique index x1 on test ( ordinal[1] );
                                                    ^

Correct, or is my syntax wrong?



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux