Re: A couple of tsearch loose ends - Mailing list pgsql-hackers

From Tom Lane
Subject Re: A couple of tsearch loose ends
Date
Msg-id 6921.1187790727@sss.pgh.pa.us
Whole thread Raw
In response to Re: A couple of tsearch loose ends  (Dimitri Fontaine <dfontaine@hi-media.com>)
Responses Re: A couple of tsearch loose ends  (Stefan Kaltenbrunner <stefan@kaltenbrunner.cc>)
List pgsql-hackers
Dimitri Fontaine <dfontaine@hi-media.com> writes:
> I don't understand why this ALTER variation is so different from existing=20
> ones, but maybe the following syntax can't work:
>   ALTER TEXT SEARCH DICTIONARY swedish ALTER STOPWORDS SET swedish;

You'd have to repeat the whole command for each option to be changed,
which given the amount of typing involved seems a bit unpleasant.

There are also historical differences between what is allowed by
the SET var = value syntax and what is allowed in the
parenthesized-option-list syntax.  Introducing an inconsistency between
ALTER and CREATE doesn't seem appetizing.

(BTW, does anyone want to teach psql's tab-completion about the new
text search statements?)
        regards, tom lane


pgsql-hackers by date:

Previous
From: "Hamid Quddus Akhtar"
Date:
Subject: Re: Crash with empty dictionary
Next
From: Tom Lane
Date:
Subject: Re: Crash with empty dictionary