Aditya Toshniwal <aditya.toshniwal@xxxxxxxxxxxxxxxx> writes: > I've encountered a server crash on creating FTS dictionary with below SQLs: > CREATE TEXT SEARCH TEMPLATE public.ftstemp ( > INIT = varchar_support, > LEXIZE = dispell_lexize > ); This is just pilot error; varchar_support() is surely not a suitable init function for a text search template. (The reason this command is superuser-only is exactly that we have to trust the user to specify a sane set of functions.) regards, tom lane