diff options
| author | Tom Lane <tgl@sss.pgh.pa.us> | 2008-09-06 00:01:25 +0000 |
|---|---|---|
| committer | Tom Lane <tgl@sss.pgh.pa.us> | 2008-09-06 00:01:25 +0000 |
| commit | 2c863ca818ba0a9704dbfe24eb578870b54bfee8 (patch) | |
| tree | bab9a88358ecf46545ca7fe6d71b18c22cf9488f /doc/src/sgml/ref/psql-ref.sgml | |
| parent | 2cdcf459ba6cbaa241e0699728f4454bed72fedf (diff) | |
Implement a psql command "\ef" to edit the definition of a function.
In support of that, create a backend function pg_get_functiondef().
The psql command is functional but maybe a bit rough around the edges...
Abhijit Menon-Sen
Diffstat (limited to 'doc/src/sgml/ref/psql-ref.sgml')
| -rw-r--r-- | doc/src/sgml/ref/psql-ref.sgml | 25 |
1 files changed, 24 insertions, 1 deletions
diff --git a/doc/src/sgml/ref/psql-ref.sgml b/doc/src/sgml/ref/psql-ref.sgml index eca30385748..2eedbb54b46 100644 --- a/doc/src/sgml/ref/psql-ref.sgml +++ b/doc/src/sgml/ref/psql-ref.sgml @@ -1,5 +1,5 @@ <!-- -$PostgreSQL: pgsql/doc/src/sgml/ref/psql-ref.sgml,v 1.209 2008/07/03 03:37:16 tgl Exp $ +$PostgreSQL: pgsql/doc/src/sgml/ref/psql-ref.sgml,v 1.210 2008/09/06 00:01:21 tgl Exp $ PostgreSQL documentation --> @@ -1196,6 +1196,29 @@ testdb=> <varlistentry> + <term><literal>\ef <replaceable class="parameter">function_description</replaceable> </literal></term> + + <listitem> + <para> + This command fetches and edits the definition of the named function, + in the form of a <command>CREATE OR REPLACE FUNCTION</> command. + Editing is done in the same way as for <literal>\e</>. + After the editor exits, the updated command waits in the query buffer; + type semicolon or <literal>\g</> to send it, or <literal>\r</> + to cancel. + </para> + + <para> + The target function can be specified by name alone, or by name + and arguments, for example <literal>foo(integer, text)</>. + The argument types must be given if there is more + than one function of the same name. + </para> + </listitem> + </varlistentry> + + + <varlistentry> <term><literal>\echo <replaceable class="parameter">text</replaceable> [ ... ]</literal></term> <listitem> <para> |
