From 6c412f0605afeb809014553ff7ad28cf9ed5526b Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Sun, 1 May 2005 18:56:19 +0000 Subject: Change CREATE TYPE to require datatype output and send functions to have only one argument. (Per recent discussion, the option to accept multiple arguments is pretty useless for user-defined types, and would be a likely source of security holes if it was used.) Simplify call sites of output/send functions to not bother passing more than one argument. --- doc/src/sgml/ref/create_type.sgml | 20 +++++++------------- 1 file changed, 7 insertions(+), 13 deletions(-) (limited to 'doc/src') diff --git a/doc/src/sgml/ref/create_type.sgml b/doc/src/sgml/ref/create_type.sgml index e2276ae5abe..69899d84f53 100644 --- a/doc/src/sgml/ref/create_type.sgml +++ b/doc/src/sgml/ref/create_type.sgml @@ -1,5 +1,5 @@ @@ -107,13 +107,10 @@ CREATE TYPE name ( (or the type's own OID for a composite type), and the third is the typmod of the destination column, if known (-1 will be passed if not). - The input function should return a value of the data type itself. - The output function may be - declared as taking one argument of the new data type, or as taking - two arguments of which the second is type oid. - The second argument is again the array element type OID for array types - or the type OID for composite types. - The output function should return type cstring. + The input function must return a value of the data type itself. + The output function must be + declared as taking one argument of the new data type. + The output function must return type cstring. @@ -137,11 +134,8 @@ CREATE TYPE name ( send_function converts from the internal representation to the external binary representation. If this function is not supplied, the type cannot participate in binary - output. The send function may be - declared as taking one argument of the new data type, or as taking - two arguments of which the second is type oid. - The second argument is again the array element type OID for array types - or the type OID for composite types. + output. The send function must be + declared as taking one argument of the new data type. The send function must return type bytea. -- cgit v1.2.3