diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2005-08-12 21:49:47 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2005-08-12 21:49:47 +0000 |
commit | 59c016aa9f490b533621ab26a98de02cf0ab7e31 (patch) | |
tree | 815313c5297ba61a23efcaf8f811794933992d72 /doc/src | |
parent | bb2ffe9acf6d6aedeae06041bbd70f8ffbcb3f2a (diff) | |
download | postgresql-59c016aa9f490b533621ab26a98de02cf0ab7e31.tar.gz postgresql-59c016aa9f490b533621ab26a98de02cf0ab7e31.zip |
Pass the type OID as the typioparam for all non-array types, rather than
only composite types as we did in 8.0. Per discussion with Martijn
van Oosterhout.
Diffstat (limited to 'doc/src')
-rw-r--r-- | doc/src/sgml/ref/create_type.sgml | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/src/sgml/ref/create_type.sgml b/doc/src/sgml/ref/create_type.sgml index 4d05fa98cd1..5fca3582fb7 100644 --- a/doc/src/sgml/ref/create_type.sgml +++ b/doc/src/sgml/ref/create_type.sgml @@ -1,5 +1,5 @@ <!-- -$PostgreSQL: pgsql/doc/src/sgml/ref/create_type.sgml,v 1.57 2005/07/14 06:17:36 neilc Exp $ +$PostgreSQL: pgsql/doc/src/sgml/ref/create_type.sgml,v 1.58 2005/08/12 21:49:46 tgl Exp $ PostgreSQL documentation --> @@ -103,8 +103,8 @@ CREATE TYPE <replaceable class="parameter">name</replaceable> ( or as taking three arguments of types <type>cstring</type>, <type>oid</type>, <type>integer</type>. The first argument is the input text as a C string, the second - argument is the element type's OID in case this is an array type - (or the type's own OID for a composite type), + argument is the type's own OID (except for array types, which instead + receive their element type's OID), and the third is the <literal>typmod</> of the destination column, if known (-1 will be passed if not). The input function must return a value of the data type itself. |