Re: [COMMITTERS] pgsql: Simplify the syntax of CREATE/ALTER TEXT SEARCH DICTIONARY by

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Teodor Sigaev <teodor(at)sigaev(dot)ru>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: [COMMITTERS] pgsql: Simplify the syntax of CREATE/ALTER TEXT SEARCH DICTIONARY by
Date: 2007-08-22 16:31:25
Message-ID: 8865.1187800285@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers pgsql-hackers

Teodor Sigaev <teodor(at)sigaev(dot)ru> writes:
>> The first kluge that comes to mind is to suppress the error check in a
>> standalone backend (ie, when not IsUnderPostmaster), which would cover
>> the initdb case. But maybe there are better answers ... any ideas?

> Don't see, but that's connected only to snowball stemmers - other dictionaries
> are not created in initdb time.

True today, but might not always be so. ISTM the generic issue here is
that initdb wants to set up prefab dictionaries that might not actually
be usable in the specific database encoding that template1 is assigned.
But making them anyway is correct, since they could still be used later
in some other database created with a different encoding. So I'm
inclined to put the disable check into the generic verify_dictoptions()
routine, not into snowball specifically.

regards, tom lane

In response to

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2007-08-22 22:16:22 Re: [COMMITTERS] pgsql: Add configure option --with-system-tzdata to use operating system
Previous Message Teodor Sigaev 2007-08-22 16:21:08 Re: [COMMITTERS] pgsql: Simplify the syntax of CREATE/ALTER TEXT SEARCH DICTIONARY by

Browse pgsql-hackers by date

  From Date Subject
Next Message Ron Mayer 2007-08-22 16:39:09 Re: tsearch2 patch status report
Previous Message Teodor Sigaev 2007-08-22 16:21:08 Re: [COMMITTERS] pgsql: Simplify the syntax of CREATE/ALTER TEXT SEARCH DICTIONARY by