Re: pgsql: GUC variable pg_trgm.similarity_threshold insead of set_limit()

Поиск
Список
Период
Сортировка
От Teodor Sigaev
Тема Re: pgsql: GUC variable pg_trgm.similarity_threshold insead of set_limit()
Дата
Msg-id 56EAE9D5.9020203@sigaev.ru
обсуждение исходный текст
Ответ на Re: pgsql: GUC variable pg_trgm.similarity_threshold insead of set_limit()  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-committers
> If that's to be an actual GUC variable, it's not okay for set_limit()
> to just do this:
>
>     similarity_threshold = nlimit;
>
> It should go through SetConfigOption(); compare for example
> tsa_set_curcfg_byname().  Which would also mean you could drop the
> range-checking code there, because guc.c would enforce it.

will fix

--
Teodor Sigaev                                   E-mail: teodor@sigaev.ru
                                                    WWW: http://www.sigaev.ru/


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: pgsql: GUC variable pg_trgm.similarity_threshold insead of set_limit()
Следующее
От: Teodor Sigaev
Дата:
Сообщение: Re: pgsql: GUC variable pg_trgm.similarity_threshold insead of set_limit()