From: Tom Lane Date: Wed, 13 Nov 2013 18:26:33 +0000 (-0500) Subject: Clarify CREATE FUNCTION documentation about handling of typmods. X-Git-Tag: REL9_3_2~40 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a1c29c1fe153302c41c6c90815a5d73f2ceeb8a5;p=postgresql Clarify CREATE FUNCTION documentation about handling of typmods. The previous text was a bit misleading, as well as unnecessarily vague about what information would be discarded. Per gripe from Craig Skinner. --- diff --git a/doc/src/sgml/ref/create_function.sgml b/doc/src/sgml/ref/create_function.sgml index a679a853a9..81278bb2f8 100644 --- a/doc/src/sgml/ref/create_function.sgml +++ b/doc/src/sgml/ref/create_function.sgml @@ -579,12 +579,13 @@ CREATE FUNCTION foo(int, int default 42) ... The full SQL type syntax is allowed for - input arguments and return value. However, some details of the - type specification (e.g., the precision field for - type numeric) are the responsibility of the - underlying function implementation and are silently swallowed - (i.e., not recognized or - enforced) by the CREATE FUNCTION command. + declaring a function's arguments and return value. However, + parenthesized type modifiers (e.g., the precision field for + type numeric) are discarded by CREATE FUNCTION. + Thus for example + CREATE FUNCTION foo (varchar(10)) ... + is exactly the same as + CREATE FUNCTION foo (varchar) ....