and modes to be included when naming an existing function.
-ALTER FUNCTION name ( [ type [, ...] ] ) action [, ... ] [ RESTRICT ]
-ALTER FUNCTION name ( [ type [, ...] ] ) RENAME TO newname
-ALTER FUNCTION name ( [ type [, ...] ] ) OWNER TO newowner
+ALTER FUNCTION name ( [ [ argmode ] [ argname ] argtype [, ...] ] )
+ action [, ... ] [ RESTRICT ]
+ALTER FUNCTION name ( [ [ argmode ] [ argname ] argtype [, ...] ] )
+ RENAME TO newname
+ALTER FUNCTION name ( [ [ argmode ] [ argname ] argtype [, ...] ] )
+ OWNER TO newowner
where action is one of:
- type
+ argmode
+
+
+ The mode of an argument: either IN>, OUT>,
+ or INOUT>. If omitted, the default is IN>.
+ Note that ALTER FUNCTION does not actually pay
+ any attention to OUT> arguments, since only the input
+ arguments are needed to determine the function's identity.
+ So it is sufficient to list the IN> and INOUT>
+ arguments.
+
+
+
+
+
+ argname
+
+
+ The name of an argument.
+ Note that ALTER FUNCTION does not actually pay
+ any attention to argument names, since only the argument data
+ types are needed to determine the function's identity.
+
+
+
+
+
+ argtype
+
- The data type of an argument of the function.
+ The data type(s) of the function's arguments (optionally
+ schema-qualified), if any.
- EXTERNAL SECURITY INVOKER
- EXTERNAL SECURITY DEFINER
+ EXTERNAL SECURITY INVOKER
+ EXTERNAL SECURITY DEFINER
CONVERSION object_name |
DATABASE object_name |
DOMAIN object_name |
- FUNCTION func_name (arg1_type, arg2_type, ...) |
+ FUNCTION func_name ( [ [ argmode ] [ argname ] argtype [, ...] ] ) |
INDEX object_name |
LARGE OBJECT large_object_oid |
OPERATOR op (leftoperand_type, rightoperand_type) |
+
+
+ sourcetype
+
+ The name of the source data type of the cast.
+
+
+
+
+
+ targettype
+
+ The name of the target data type of the cast.
+
+
+
+
+
+ argmode
+
+
+ The mode of a function argument: either IN>, OUT>,
+ or INOUT>. If omitted, the default is IN>.
+ Note that COMMENT ON FUNCTION does not actually pay
+ any attention to OUT> arguments, since only the input
+ arguments are needed to determine the function's identity.
+ So it is sufficient to list the IN> and INOUT>
+ arguments.
+
+
+
+
+
+ argname
+
+
+ The name of a function argument.
+ Note that COMMENT ON FUNCTION does not actually pay
+ any attention to argument names, since only the argument data
+ types are needed to determine the function's identity.
+
+
+
+
+
+ argtype
+
+
+ The data type(s) of the function's arguments (optionally
+ schema-qualified), if any.
+
+
+
large_object_oid
-
-
- sourcetype
-
- The name of the source data type of the cast.
-
-
-
-
-
- targettype
-
- The name of the target data type of the cast.
-
-
-
text
-DROP FUNCTION name ( [ type [, ...] ] ) [ CASCADE | RESTRICT ]
+DROP FUNCTION name ( [ [ argmode ] [ argname ] argtype [, ...] ] )
+ [ CASCADE | RESTRICT ]
- type
+ argmode
+
+
+ The mode of an argument: either IN>, OUT>,
+ or INOUT>. If omitted, the default is IN>.
+ Note that DROP FUNCTION does not actually pay
+ any attention to OUT> arguments, since only the input
+ arguments are needed to determine the function's identity.
+ So it is sufficient to list the IN> and INOUT>
+ arguments.
+
+
+
+
+
+ argname
+
+
+ The name of an argument.
+ Note that DROP FUNCTION does not actually pay
+ any attention to argument names, since only the argument data
+ types are needed to determine the function's identity.
+
+
+
+
+
+ argtype
+
- The data type of an argument of the function.
+ The data type(s) of the function's arguments (optionally
+ schema-qualified), if any.
TO { username | GROUP groupname | PUBLIC } [, ...] [ WITH GRANT OPTION ]
GRANT { EXECUTE | ALL [ PRIVILEGES ] }
- ON FUNCTION funcname ([type, ...]) [, ...]
+ ON FUNCTION funcname ( [ [ argmode ] [ argname ] argtype [, ...] ] ) [, ...]
TO { username | GROUP groupname | PUBLIC } [, ...] [ WITH GRANT OPTION ]
GRANT { USAGE | ALL [ PRIVILEGES ] }
REVOKE [ GRANT OPTION FOR ]
{ EXECUTE | ALL [ PRIVILEGES ] }
- ON FUNCTION funcname ([type, ...]) [, ...]
+ ON FUNCTION funcname ( [ [ argmode ] [ argname ] argtype [, ...] ] ) [, ...]
FROM { username | GROUP groupname | PUBLIC } [, ...]
[ CASCADE | RESTRICT ]