mirror of
https://github.com/postgres/postgres.git
synced 2025-09-11 00:12:06 +03:00
Support for OUT parameters in procedures
Unlike for functions, OUT parameters for procedures are part of the signature. Therefore, they have to be listed in pg_proc.proargtypes as well as mentioned in ALTER PROCEDURE and DROP PROCEDURE. Reviewed-by: Andrew Dunstan <andrew.dunstan@2ndquadrant.com> Reviewed-by: Pavel Stehule <pavel.stehule@gmail.com> Discussion: https://www.postgresql.org/message-id/flat/2b8490fe-51af-e671-c504-47359dc453c5@2ndquadrant.com
This commit is contained in:
@@ -212,11 +212,12 @@ ALTER EXTENSION <replaceable class="parameter">name</replaceable> DROP <replacea
|
||||
argument: <literal>IN</literal>, <literal>OUT</literal>,
|
||||
<literal>INOUT</literal>, or <literal>VARIADIC</literal>.
|
||||
If omitted, the default is <literal>IN</literal>.
|
||||
Note that <command>ALTER EXTENSION</command> does not actually pay
|
||||
any attention to <literal>OUT</literal> arguments, since only the input
|
||||
arguments are needed to determine the function's identity.
|
||||
So it is sufficient to list the <literal>IN</literal>, <literal>INOUT</literal>,
|
||||
and <literal>VARIADIC</literal> arguments.
|
||||
Note that <command>ALTER EXTENSION</command> does not actually pay any
|
||||
attention to <literal>OUT</literal> arguments for functions and
|
||||
aggregates (but not procedures), since only the input arguments are
|
||||
needed to determine the function's identity. So it is sufficient to
|
||||
list the <literal>IN</literal>, <literal>INOUT</literal>, and
|
||||
<literal>VARIADIC</literal> arguments for functions and aggregates.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
Reference in New Issue
Block a user