aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2022-06-14 17:47:09 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2022-06-14 17:47:09 -0400
commitcc5de7ba255dad24e57fd77578a70581a17a8b2c (patch)
treedc0fb0168e270737417d002355e7f773bb3439e8
parent030da9b6fd5254a0878bcf9fab10cf70c86d4927 (diff)
downloadpostgresql-cc5de7ba255dad24e57fd77578a70581a17a8b2c.tar.gz
postgresql-cc5de7ba255dad24e57fd77578a70581a17a8b2c.zip
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
-rw-r--r--doc/src/sgml/ref/create_domain.sgml3
1 files changed, 2 insertions, 1 deletions
diff --git a/doc/src/sgml/ref/create_domain.sgml b/doc/src/sgml/ref/create_domain.sgml
index 81a89249260..e4b856d630c 100644
--- a/doc/src/sgml/ref/create_domain.sgml
+++ b/doc/src/sgml/ref/create_domain.sgml
@@ -94,7 +94,8 @@ CREATE DOMAIN <replaceable class="parameter">name</replaceable> [ AS ] <replacea
<listitem>
<para>
An optional collation for the domain. If no collation is
- specified, the underlying data type's default collation is used.
+ specified, the domain has the same collation behavior as its
+ underlying data type.
The underlying type must be collatable if <literal>COLLATE</literal>
is specified.
</para>