Re: Accessing composite type columns in indexes - Mailing list pgsql-general

From Michael Fuhr
Subject Re: Accessing composite type columns in indexes
Date
Msg-id 20060304043404.GA55362@winnie.fuhr.org
Whole thread Raw
In response to Accessing composite type columns in indexes  (Michael Glaesemann <grzm@myrealbox.com>)
Responses Re: Accessing composite type columns in indexes
List 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 by date:

Previous
From: Tom Lane
Date:
Subject: Re: Accessing composite type columns in indexes
Next
From: Michael Glaesemann
Date:
Subject: Re: Accessing composite type columns in indexes