diff options
-rw-r--r-- | doc/src/sgml/ref/create_function.sgml | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/doc/src/sgml/ref/create_function.sgml b/doc/src/sgml/ref/create_function.sgml index 1871203e14d..4a3bde5a49b 100644 --- a/doc/src/sgml/ref/create_function.sgml +++ b/doc/src/sgml/ref/create_function.sgml @@ -557,12 +557,13 @@ CREATE FUNCTION foo(int, int default 42) ... <para> The full <acronym>SQL</acronym> type syntax is allowed for - input arguments and return value. However, some details of the - type specification (e.g., the precision field for - type <type>numeric</type>) are the responsibility of the - underlying function implementation and are silently swallowed - (i.e., not recognized or - enforced) by the <command>CREATE FUNCTION</command> command. + declaring a function's arguments and return value. However, + parenthesized type modifiers (e.g., the precision field for + type <type>numeric</type>) are discarded by <command>CREATE FUNCTION</>. + Thus for example + <literal>CREATE FUNCTION foo (varchar(10)) ...</> + is exactly the same as + <literal>CREATE FUNCTION foo (varchar) ...</>. </para> <para> |