Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit2d46171

Browse files
committed
Document COLLATE option in CREATE TYPE reference page.
Curiously, it was already documented in ALTER TYPE ADD ATTRIBUTE, butnot here.
1 parentacfa1f4 commit2d46171

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 usefulas 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 afunction.
8586
</para>
8687
</refsect2>
8788

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp