Skip to content

Commit 2d46171

Browse files
committed
Document COLLATE option in CREATE TYPE reference page.
Curiously, it was already documented in ALTER TYPE ADD ATTRIBUTE, but not here.
1 parent acfa1f4 commit 2d46171

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

doc/src/sgml/ref/create_type.sgml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ PostgreSQL documentation
2222
<refsynopsisdiv>
2323
<synopsis>
2424
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> ] [, ... ] ] )
2626

2727
CREATE TYPE <replaceable class="parameter">name</replaceable> AS ENUM
2828
( [ '<replaceable class="parameter">label</replaceable>' [, ... ] ] )
@@ -77,11 +77,12 @@ CREATE TYPE <replaceable class="parameter">name</replaceable>
7777
The first form of <command>CREATE TYPE</command>
7878
creates a composite type.
7979
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
8182
of a table, but using <command>CREATE TYPE</command> avoids the need to
8283
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.
8586
</para>
8687
</refsect2>
8788

0 commit comments

Comments
 (0)