diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2013-11-13 13:26:33 -0500 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2013-11-13 13:30:15 -0500 |
commit | 5d924f067c0cc0b15709bdf604e6ac5f33158eb6 (patch) | |
tree | 63e6100dbe1559af6276b8e08fc6c5117d602e0b | |
parent | 869b1e4a678cc6d78a64ed01682ddf8f8debd781 (diff) | |
download | postgresql-5d924f067c0cc0b15709bdf604e6ac5f33158eb6.tar.gz postgresql-5d924f067c0cc0b15709bdf604e6ac5f33158eb6.zip |
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.
-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 a679a853a99..81278bb2f81 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) ... <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> |