]> granicus.if.org Git - postgresql/commit
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)
commit409c144d8343f7f2284ff90979edfec3c487e9ee
tree015031d47fb926eb2f4a9a7998cf005a564a33d1
parent2c863ca818ba0a9704dbfe24eb578870b54bfee8
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