Adjust psql's new \ef command to present an empty CREATE FUNCTION template
commit600b873d59529de3ded5da8f92eefe957bdd3df8
authortgl <tgl>
Sat, 6 Sep 2008 20:18:08 +0000 (6 20:18 +0000)
committertgl <tgl>
Sat, 6 Sep 2008 20:18:08 +0000 (6 20:18 +0000)
tree9428687c9438041b3dedae42e010677474ca1073
parentc2a1d194ea6f60fe78a770e6dc05f7fda6c17faa
Adjust psql's new \ef command to present an empty CREATE FUNCTION template
for editing if no function name is specified.  This seems a much cleaner way
to offer that functionality than the original patch had.  In passing,
de-clutter the error displays that are given for a bogus function-name
argument, and standardize on "$function$" as the default delimiter for the
function body.  (The original coding would use the shortest possible
dollar-quote delimiter, which seems to create unnecessarily high risk of
later conflicts with the user-modified function body.)
doc/src/sgml/ref/psql-ref.sgml
src/backend/utils/adt/ruleutils.c
src/bin/psql/command.c