Re: Coredump with text search dictionary
От | Tom Lane |
---|---|
Тема | Re: Coredump with text search dictionary |
Дата | |
Msg-id | 774952.1660020771@sss.pgh.pa.us обсуждение исходный текст |
Ответ на | Coredump with text search dictionary (Japin Li <japinli@hotmail.com>) |
Ответы |
Re: Coredump with text search dictionary
|
Список | pgsql-bugs |
Japin Li <japinli@hotmail.com> writes: > When attempting use text search, here is a core dump > (reported from my friend, Song Jinzhou). > CREATE TEXT SEARCH TEMPLATE public.my_ts_template ( > init = varchar_support, > lexize = dispell_lexize > ); > CREATE TEXT SEARCH DICTIONARY public.my_ts_dict ( > template = public.my_ts_template > ); There's a reason why CREATE TEXT SEARCH TEMPLATE is superuser-only: it's on you to supply valid parameters. varchar_support is a completely inappropriate choice for a TS template init function. The proposed patch doesn't add any meaningful amount of safety (just add some options to the dictionary, and it'll still crash). Moreover, the patch breaks init functions that would, say, want to insist that option X be provided. regards, tom lane
В списке pgsql-bugs по дате отправления: