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) ...>.