Re: Accessing composite type columns in indexes

Поиск
Список
Период
Сортировка
От Michael Fuhr
Тема Re: Accessing composite type columns in indexes
Дата
Msg-id 20060304043404.GA55362@winnie.fuhr.org
обсуждение исходный текст
Ответ на Accessing composite type columns in indexes  (Michael Glaesemann <grzm@myrealbox.com>)
Ответы Re: Accessing composite type columns in indexes
Список pgsql-general
On Sat, Mar 04, 2006 at 12:21:38PM +0900, Michael Glaesemann wrote:
> create unique index employment_history_pkey_idx
> on employment_history (company, (during).from_date, (during).to_date);
> ERROR:  syntax error at or near "." at character 89
> LINE 2: on employment_history (company, (during).from_date, (during)...
>                                                 ^

This works:

create unique index employment_history_pkey_idx
on employment_history (company, ((during).from_date), ((during).to_date));

--
Michael Fuhr

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Accessing composite type columns in indexes
Следующее
От: Michael Glaesemann
Дата:
Сообщение: Re: Accessing composite type columns in indexes