From 409c144d8343f7f2284ff90979edfec3c487e9ee Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Sat, 6 Sep 2008 20:18:08 +0000 Subject: 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 | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'doc/src') diff --git a/doc/src/sgml/ref/psql-ref.sgml b/doc/src/sgml/ref/psql-ref.sgml index 2eedbb54b46..464cf8ec7f2 100644 --- a/doc/src/sgml/ref/psql-ref.sgml +++ b/doc/src/sgml/ref/psql-ref.sgml @@ -1,5 +1,5 @@ @@ -1161,7 +1161,7 @@ testdb=> - \edit (or \e) [ filename ] + \edit (or \e) filename @@ -1196,7 +1196,7 @@ testdb=> - \ef function_description + \ef function_description @@ -1214,6 +1214,11 @@ testdb=> The argument types must be given if there is more than one function of the same name. + + + If no function is specified, a blank CREATE FUNCTION + template is presented for editing. + -- cgit v1.2.3