Re: default_text_search_config and expression indexes - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: default_text_search_config and expression indexes
Date
Msg-id 20070814211528.GV9206@alvh.no-ip.org
Whole thread Raw
In response to Re: default_text_search_config and expression indexes  (Oleg Bartunov <oleg@sai.msu.su>)
Responses Re: default_text_search_config and expression indexes  ("Mike Rylander" <mrylander@gmail.com>)
Re: default_text_search_config and expression indexes  (Oleg Bartunov <oleg@sai.msu.su>)
List pgsql-hackers
Oleg Bartunov wrote:
> On Tue, 14 Aug 2007, Alvaro Herrera wrote:
>
>> Oleg Bartunov wrote:
>>> On Thu, 9 Aug 2007, tomas@tuxteam.de wrote:
>>>
>>>> Maybe I'm missing something, but it seems to me that the configuration
>>>> is more attached to a column/index thatn to the whole database. If
>>>> there's a default in an expression, I'd rather expect this default to be
>>>> drawn from the index involved than from a global value (like a 
>>>> functional
>>>> index does now).
>>>
>>> I'm tired to repeat - index itself doesn't know about configuration !
>>
>> Is there a way to change that?  For example store the configuration in a
>> metapage or something?
>
> it's useless, in general, since you could use different configuration to 
> build tsvector.

Hmm, sorry, I think I just understood what this was about: so you mean
that the configuration is really *per row* and not per index?  So I can
store rows into an index using more than one configuration, and it will
work?

-- 
Alvaro Herrera                                http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.


pgsql-hackers by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: default_text_search_config and expression indexes
Next
From: Chris Browne
Date:
Subject: Index Tuple Compression Approach?