Re: default_text_search_config and expression indexes

From: "Mike Rylander" <mrylander(at)gmail(dot)com>
To: "Alvaro Herrera" <alvherre(at)commandprompt(dot)com>
Cc: "Oleg Bartunov" <oleg(at)sai(dot)msu(dot)su>, 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 21:32:08
Message-ID: b918cf3d0708141432w456a3658se54c2798b6f578dd@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-advocacy pgsql-hackers

On 8/14/07, Alvaro Herrera <alvherre(at)commandprompt(dot)com> wrote:
> Oleg Bartunov wrote:
> > 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.
>
> 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?

Can and does, to great success. :)

--miker

In response to

Browse pgsql-advocacy by date

  From Date Subject
Next Message Bob Zurek 2007-08-14 21:35:59 12 Silver Bullets
Previous Message Greg Smith 2007-08-14 21:23:33 Re: transactional DDL

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2007-08-14 21:41:54 Re: tsearch2 in PostgreSQL 8.3?
Previous Message Decibel! 2007-08-14 21:27:39 Re: Index Tuple Compression Approach?