Re: unaccent module - two params function should be immutable
От | Bruce Momjian |
---|---|
Тема | Re: unaccent module - two params function should be immutable |
Дата | |
Msg-id | 20130924213658.GB21534@momjian.us обсуждение исходный текст |
Ответ на | Re: unaccent module - two params function should be immutable (Robert Haas <robertmhaas@gmail.com>) |
Ответы |
Re: unaccent module - two params function should be
immutable
|
Список | pgsql-hackers |
On Tue, Sep 17, 2013 at 10:15:47AM -0400, Robert Haas wrote: > On Sat, Sep 14, 2013 at 9:42 AM, Pavel Stehule <pavel.stehule@gmail.com> wrote: > >> I have developed the attached patch based on your suggestion. I did not > >> see anything in the code that would make it STABLE, except a lookup of a > >> dictionary library: > >> > >> dictOid = get_ts_dict_oid(stringToQualifiedNameList("unaccent"), > >> false); > > > > yes, it risk, but similar is with timezones, and other external data. > > That's a catalog lookup - not a reliance on external data. Sorry, I was wrong. Only unaccent_dict() calls get_ts_dict_oid(), and we aren't changing the signature of that function. -- Bruce Momjian <bruce@momjian.us> http://momjian.us EnterpriseDB http://enterprisedb.com + It's impossible for everything to be true. +
В списке pgsql-hackers по дате отправления: