Re: tsearch2 in PostgreSQL 8.3?

From: Kenneth Marshall <ktm(at)rice(dot)edu>
To: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
Cc: Bruce Momjian <bruce(at)momjian(dot)us>, PostgreSQL-development <pgsql-hackers(at)postgreSQL(dot)org>
Subject: Re: tsearch2 in PostgreSQL 8.3?
Date: 2007-08-14 20:04:37
Message-ID: 20070814200437.GL26562@it.is.rice.edu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Tue, Aug 14, 2007 at 03:15:44PM -0400, Alvaro Herrera wrote:
> Bruce Momjian wrote:
> > A lot of work has been done to try to get /contrib/tsearch2 into the
> > core backend for 8.3, but we have hit a roadblock in how to handle
> > multiple text search configurations. (FYI, the documentation is at
> > http://momjian.us/expire/textsearch/HTML/textsearch.html.)
> >
> > There are three options for controlling text search configurations:
> >
> > 1) have a GUC variable which specifies the default configuration
> > 2) require the configuration to be always specified
> > 3) use the type system to automatically use the right configuration
> >
> > The problem with #1 is that is it error-prone (easy to mismatch
> > configurations). One idea was to have the GUC be super-user-only but
> > then restoring a dump as non-super-user is a problem.
>
> What is the worst consequence of mismatching configuration? Does it
> cause a system crash? A backend hang? A corrupted index? Lost data?
> Or does it, as I assume, just fail to return the exact result set that
> would be returned if the correct configuration was supplied?
>
> If the answer is the latter, I think this is not so huge a problem that
> FULL TEXT should be rejected for 8.3 on these grounds. We just tell
> people to use the correct query and be done with it.
>
I think that users of the full-text option would need to read the
documentation and we could include any needed caveats. This would
certainly do for the 8.3 release and would give us time to simplify
the management and use in the 8.4 release. I, for one, have been
waiting a long time for it to be integrated into the database.

Ken

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Andrew Dunstan 2007-08-14 20:09:37 Re: change name of redirect_stderr?
Previous Message Heikki Linnakangas 2007-08-14 19:26:17 Re: tsearch2 in PostgreSQL 8.3?