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

From Michael Glaesemann
Subject Re: Accessing composite type columns in indexes
Date
Msg-id D4C62B26-11E1-4002-8A17-C13648E47144@myrealbox.com
Whole thread Raw
In response to Re: Accessing composite type columns in indexes  (Michael Fuhr <mike@fuhr.org>)
Responses Re: Accessing composite type columns in indexes  (Michael Glaesemann <grzm@myrealbox.com>)
List pgsql-general
On Mar 4, 2006, at 13:34 , Michael Fuhr wrote:

> 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));

Thanks, Tom and Michael. I thought I had been aggressive enough in
applying parentheses.

On Mar 4, 2006, at 13:31 , Tom Lane wrote:
> Make sense now?

Yep!

Michael Glaesemann
grzm myrealbox com




pgsql-general by date:

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