Skip to content

Commit d26ac35

Browse files
committed
Doc: clarify the default collation behavior of domains.
The previous wording was "the underlying data type's default collation is used", which is wrong or at least misleading. The domain inherits the base type's collation behavior, which if "default" actually can mean that we use some non-default collation obtained from elsewhere. Per complaint from Jian He. Discussion: https://postgr.es/m/CACJufxHMR8_4WooDPjjvEdaxB2hQ5a49qthci8fpKP0MKemVRQ@mail.gmail.com
1 parent 4e54d23 commit d26ac35

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

doc/src/sgml/ref/create_domain.sgml

+2-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,8 @@ CREATE DOMAIN <replaceable class="parameter">name</replaceable> [ AS ] <replacea
9494
<listitem>
9595
<para>
9696
An optional collation for the domain. If no collation is
97-
specified, the underlying data type's default collation is used.
97+
specified, the domain has the same collation behavior as its
98+
underlying data type.
9899
The underlying type must be collatable if <literal>COLLATE</literal>
99100
is specified.
100101
</para>

0 commit comments

Comments
 (0)