Adjust psql's new \ef command to present an empty CREATE FUNCTION template
authorTom Lane <tgl@sss.pgh.pa.us>
Sat, 6 Sep 2008 20:18:08 +0000 (20:18 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sat, 6 Sep 2008 20:18:08 +0000 (20:18 +0000)
commit9351b3d78a1b7eadeae198146367baa57429174a
tree2220a16d6ac1a1b76d1396818c74fdf6a5d54473
parent0ca42708aeccfbc848769e6c490bfb8c9f61eac2
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