1
1
<!--
2
- $Header: /cvsroot/pgsql/doc/src/sgml/ref/create_type.sgml,v 1.29 2002/05/18 15:44:47 petere Exp $
2
+ $Header: /cvsroot/pgsql/doc/src/sgml/ref/create_type.sgml,v 1.30 2002/07/24 19:11:07 petere Exp $
3
3
PostgreSQL documentation
4
4
-->
5
5
@@ -24,10 +24,8 @@ PostgreSQL documentation
24
24
CREATE TYPE <replaceable class="parameter">typename</replaceable> ( INPUT = <replaceable class="parameter">input_function</replaceable>, OUTPUT = <replaceable class="parameter">output_function</replaceable>
25
25
, INTERNALLENGTH = { <replaceable
26
26
class="parameter">internallength</replaceable> | VARIABLE }
27
- [ , EXTERNALLENGTH = { <replaceable class="parameter">externallength</replaceable> | VARIABLE } ]
28
27
[ , DEFAULT = <replaceable class="parameter">default</replaceable> ]
29
28
[ , ELEMENT = <replaceable class="parameter">element</replaceable> ] [ , DELIMITER = <replaceable class="parameter">delimiter</replaceable> ]
30
- [ , SEND = <replaceable class="parameter">send_function</replaceable> ] [ , RECEIVE = <replaceable class="parameter">receive_function</replaceable> ]
31
29
[ , PASSEDBYVALUE ]
32
30
[ , ALIGNMENT = <replaceable class="parameter">alignment</replaceable> ]
33
31
[ , STORAGE = <replaceable class="parameter">storage</replaceable> ]
@@ -63,16 +61,6 @@ CREATE TYPE <replaceable class="parameter">typename</replaceable> ( INPUT = <rep
63
61
</listitem>
64
62
</varlistentry>
65
63
66
- <varlistentry>
67
- <term><replaceable class="parameter">externallength</replaceable></term>
68
- <listitem>
69
- <para>
70
- A literal value, which specifies the external (displayed) length of
71
- the new type.
72
- </para>
73
- </listitem>
74
- </varlistentry>
75
-
76
64
<varlistentry>
77
65
<term><replaceable class="parameter">input_function</replaceable></term>
78
66
<listitem>
@@ -126,26 +114,6 @@ CREATE TYPE <replaceable class="parameter">typename</replaceable> ( INPUT = <rep
126
114
</para>
127
115
</listitem>
128
116
</varlistentry>
129
- <varlistentry>
130
- <term><replaceable class="parameter">send_function</replaceable></term>
131
- <listitem>
132
- <para>
133
- The name of a function, created by <command>CREATE FUNCTION</command>, which
134
- converts data of this type into a form suitable for
135
- transmission to another machine.
136
- </para>
137
- </listitem>
138
- </varlistentry>
139
- <varlistentry>
140
- <term><replaceable class="parameter">receive_function</replaceable></term>
141
- <listitem>
142
- <para>
143
- The name of a function, created by <command>CREATE FUNCTION</command>, which
144
- converts data of this type from a form suitable for
145
- transmission from another machine to internal form.
146
- </para>
147
- </listitem>
148
- </varlistentry>
149
117
150
118
<varlistentry>
151
119
<term><replaceable class="parameter">alignment</replaceable></term>
@@ -259,13 +227,6 @@ CREATE TYPE
259
227
length of this value of the type.
260
228
</para>
261
229
262
- <para>
263
- The external representation length is similarly specified using the
264
- <replaceable class="parameter">externallength</replaceable>
265
- keyword. (This value is not presently used, and is typically omitted,
266
- letting it default to <option>VARIABLE</option>.)
267
- </para>
268
-
269
230
<para>
270
231
To indicate that a type is an array,
271
232
specify the type of the array
@@ -292,18 +253,6 @@ CREATE TYPE
292
253
clause attached to a particular column.)
293
254
</para>
294
255
295
- <para>
296
- The optional arguments
297
- <replaceable class="parameter">send_function</replaceable> and
298
- <replaceable class="parameter">receive_function</replaceable>
299
- are not currently used, and are usually omitted (allowing them
300
- to default to the
301
- <replaceable class="parameter">output_function</replaceable> and
302
- <replaceable class="parameter">input_function</replaceable>
303
- respectively). These functions may someday be resurrected for use
304
- in specifying machine-independent binary representations.
305
- </para>
306
-
307
256
<para>
308
257
The optional flag, <option>PASSEDBYVALUE</option>, indicates that
309
258
values of this data type are passed
0 commit comments