]> granicus.if.org Git - postgresql/commit
Change tsearch2 to not use the unsafe practice of creating functions
authorTom Lane <tgl@sss.pgh.pa.us>
Tue, 3 May 2005 16:51:00 +0000 (16:51 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 3 May 2005 16:51:00 +0000 (16:51 +0000)
commit177af51c04528f0edb4d5dc632297c3c796a47f9
tree1ba9d41ffc9f274697da9df9f31b0c8b39f089c4
parent39e54e320877c9984186846793233dbc77af85ee
Change tsearch2 to not use the unsafe practice of creating functions
that return INTERNAL without also having INTERNAL arguments.  Since the
functions in question aren't meant to be called by hand anyway, I just
redeclared them to take 'internal' instead of 'text'.  Also add code
to ProcedureCreate() to enforce the restriction, as I should have done
to start with :-(
contrib/tsearch2/gendict/sql.IN
contrib/tsearch2/tsearch.sql.in
contrib/tsearch2/untsearch.sql.in
src/backend/catalog/pg_proc.c