File tree 1 file changed +5
-4
lines changed 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ PostgreSQL documentation
22
22
<refsynopsisdiv>
23
23
<synopsis>
24
24
CREATE TYPE <replaceable class="parameter">name</replaceable> AS
25
- ( [ <replaceable class="PARAMETER">attribute_name</replaceable> <replaceable class="PARAMETER">data_type</replaceable> [, ... ] ] )
25
+ ( [ <replaceable class="PARAMETER">attribute_name</replaceable> <replaceable class="PARAMETER">data_type</replaceable> [ COLLATE <replaceable>collation</replaceable> ] [ , ... ] ] )
26
26
27
27
CREATE TYPE <replaceable class="parameter">name</replaceable> AS ENUM
28
28
( [ '<replaceable class="parameter">label</replaceable>' [, ... ] ] )
@@ -77,11 +77,12 @@ CREATE TYPE <replaceable class="parameter">name</replaceable>
77
77
The first form of <command>CREATE TYPE</command>
78
78
creates a composite type.
79
79
The composite type is specified by a list of attribute names and data types.
80
- This is essentially the same as the row type
80
+ An attribute's collation can be specified too, if its data type is
81
+ collatable. A composite type is essentially the same as the row type
81
82
of a table, but using <command>CREATE TYPE</command> avoids the need to
82
83
create an actual table when all that is wanted is to define a type.
83
- A stand-alone composite type is useful as the argument or return type of a
84
- function.
84
+ A stand-alone composite type is useful, for example, as the argument or
85
+ return type of a function.
85
86
</para>
86
87
</refsect2>
87
88
You can’t perform that action at this time.
0 commit comments