Re: default_text_search_config and expression indexes

From: Oleg Bartunov <oleg(at)sai(dot)msu(dot)su>
To: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
Cc: tomas(at)tuxteam(dot)de, Bruce Momjian <bruce(at)momjian(dot)us>, Heikki Linnakangas <heikki(at)enterprisedb(dot)com>, Ron Mayer <rm_pg(at)cheapcomplexdevices(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: default_text_search_config and expression indexes
Date: 2007-08-14 18:44:42
Message-ID: Pine.LNX.4.64.0708142242370.18739@sn.sai.msu.ru
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-advocacy pgsql-hackers

On Tue, 14 Aug 2007, Alvaro Herrera wrote:

> Oleg Bartunov wrote:
>> On Thu, 9 Aug 2007, tomas(at)tuxteam(dot)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.

Regards,
Oleg
_____________________________________________________________
Oleg Bartunov, Research Scientist, Head of AstroNet (www.astronet.ru)
Sternberg Astronomical Institute, Moscow University, Russia
Internet: oleg(at)sai(dot)msu(dot)su, http://www.sai.msu.su/~megera/
phone: +007(495)939-16-83, +007(495)939-23-83

In response to

Responses

Browse pgsql-advocacy by date

  From Date Subject
Next Message Greg Smith 2007-08-14 18:48:46 Re: transactional DDL
Previous Message Heikki Linnakangas 2007-08-14 18:35:43 Re: default_text_search_config and expression indexes

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2007-08-14 19:00:04 tsearch2 in PostgreSQL 8.3?
Previous Message Heikki Linnakangas 2007-08-14 18:41:13 Re: change name of redirect_stderr?