Re: Is ALTER TEXT SEARCH CONFIGURATION PARSER = new_parser really sane?

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: Is ALTER TEXT SEARCH CONFIGURATION PARSER = new_parser really sane?
Дата
Msg-id 200708220322.l7M3Mgw12419@momjian.us
обсуждение исходный текст
Ответ на Is ALTER TEXT SEARCH CONFIGURATION PARSER = new_parser really sane?  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Tom Lane wrote:
> After starting to document this stuff I'm wondering whether it really
> makes sense to change the parser associated with a tsearch
> configuration.  The problem is that the new parser might have an
> unrelated set of token types, but we don't do anything about updating
> the configuration's mappings.
> 
> Ensuring sane behavior here would take a whole lot of new code, and
> I'm not sure that I see a use-case that justifies it.  So I'm tempted to
> take out that particular ALTER capability altogether.  I note that the
> corresponding feature of changing a dictionary's template on-the-fly
> doesn't exist (though it'd actually be a lot easier to support).
> 
> Comments?

Agreed, the parser should be a central part of the configuration and
changing it seems odd.  If someone really wanted to change it they can
create a new configuration with a new parser, then rename the new one
into place.

--  Bruce Momjian  <bruce@momjian.us>          http://momjian.us EnterpriseDB
http://www.enterprisedb.com
 + If your life is a hard drive, Christ can be your backup. +


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Is ALTER TEXT SEARCH CONFIGURATION PARSER = new_parser really sane?
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: A couple of tsearch loose ends