Change tsearch2 to not use the unsafe practice of creating functions

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 298e077bc4ee507b17720bca29406042c4e6bcf3
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2005-05-03T16:51:22Z
Releases: 8.0.3
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 :-(

Files