Change tsearch2 to not use the unsafe practice of creating functions
authorTom Lane <tgl@sss.pgh.pa.us>
Tue, 3 May 2005 16:51:45 +0000 (16:51 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 3 May 2005 16:51:45 +0000 (16:51 +0000)
commit2fa1eb34f7a91e5b1e486f3c1aae2b2f7dc610dd
treee471a58d254199e8ce6e47d2178afc4e18659ea8
parentb31488993f46b4cdc8f7d185faa7f4a92d82a50b
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