Re: Index on array element

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Index on array element
Дата
Msg-id 25241.1069740056@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Index on array element  (Steve Crawford <scrawford@pinpointresearch.com>)
Список pgsql-general
Steve Crawford <scrawford@pinpointresearch.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

В списке pgsql-general по дате отправления:

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: PostgreSQL certifications?
Следующее
От: Shridhar Daithankar
Дата:
Сообщение: Re: The new autovacuum tool