|
1 |
| -<!-- $PostgreSQL: pgsql/doc/src/sgml/func.sgml,v 1.443 2008/07/21 04:47:00 tgl Exp $ --> |
| 1 | +<!-- $PostgreSQL: pgsql/doc/src/sgml/func.sgml,v 1.444 2008/09/06 00:01:21 tgl Exp $ --> |
2 | 2 |
|
3 | 3 | <chapter id="functions">
|
4 | 4 | <title>Functions and Operators</title>
|
@@ -11562,6 +11562,10 @@ SELECT pg_type_is_visible('myschema.widget'::regtype);
|
11562 | 11562 | <primary>pg_get_ruledef</primary>
|
11563 | 11563 | </indexterm>
|
11564 | 11564 |
|
| 11565 | + <indexterm> |
| 11566 | + <primary>pg_get_functiondef</primary> |
| 11567 | + </indexterm> |
| 11568 | + |
11565 | 11569 | <indexterm>
|
11566 | 11570 | <primary>pg_get_function_arguments</primary>
|
11567 | 11571 | </indexterm>
|
@@ -11643,6 +11647,11 @@ SELECT pg_type_is_visible('myschema.widget'::regtype);
|
11643 | 11647 | <entry>decompile internal form of an expression, assuming that any Vars
|
11644 | 11648 | in it refer to the relation indicated by the second parameter</entry>
|
11645 | 11649 | </row>
|
| 11650 | + <row> |
| 11651 | + <entry><literal><function>pg_get_functiondef</function>(<parameter>func_oid</parameter>)</literal></entry> |
| 11652 | + <entry><type>text</type></entry> |
| 11653 | + <entry>get definition of a function</entry> |
| 11654 | + </row> |
11646 | 11655 | <row>
|
11647 | 11656 | <entry><literal><function>pg_get_function_arguments</function>(<parameter>func_oid</parameter>)</literal></entry>
|
11648 | 11657 | <entry><type>text</type></entry>
|
@@ -11756,6 +11765,8 @@ SELECT pg_type_is_visible('myschema.widget'::regtype);
|
11756 | 11765 | </para>
|
11757 | 11766 |
|
11758 | 11767 | <para>
|
| 11768 | + <function>pg_get_functiondef</> returns a complete |
| 11769 | + <command>CREATE OR REPLACE FUNCTION</> statement for a function. |
11759 | 11770 | <function>pg_get_function_arguments</function> returns the argument list
|
11760 | 11771 | of a function, in the form it would need to appear in within
|
11761 | 11772 | <command>CREATE FUNCTION</>.
|
|
0 commit comments