Re: A couple of tsearch loose ends

From: Stefan Kaltenbrunner <stefan(at)kaltenbrunner(dot)cc>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Dimitri Fontaine <dfontaine(at)hi-media(dot)com>, pgsql-hackers(at)postgresql(dot)org, Teodor Sigaev <teodor(at)sigaev(dot)ru>, Oleg Bartunov <oleg(at)sai(dot)msu(dot)su>
Subject: Re: A couple of tsearch loose ends
Date: 2007-08-22 14:34:42
Message-ID: 46CC4982.4060804@kaltenbrunner.cc
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Tom Lane wrote:
> Dimitri Fontaine <dfontaine(at)hi-media(dot)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?)

I will take a stab at doing that ...

Stefan

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2007-08-22 14:39:01 Re: [COMMITTERS] pgsql: Simplify the syntax of CREATE/ALTER TEXT SEARCH DICTIONARY by
Previous Message Tom Lane 2007-08-22 14:33:06 Re: PG Seg Faults Performing a Query