Re: cast to domain with default collation issue. - Mailing list pgsql-general

From David G. Johnston
Subject Re: cast to domain with default collation issue.
Date
Msg-id CAKFQuwZB8iWL9btLWEr-Zo8tUMbCpKstEBP3gSQjVk6uCWbZKQ@mail.gmail.com
Whole thread Raw
In response to cast to domain with default collation issue.  (jian he <jian.universality@gmail.com>)
Responses Re: cast to domain with default collation issue.
Re: cast to domain with default collation issue.
List pgsql-general
On Monday, May 23, 2022, jian he <jian.universality@gmail.com> wrote:

CREATE DOMAIN testdomain AS text;

 --asume the default collation is as per show LC_COLLATE;

– on my pc, it is C.UTF-8.

--So the testdomain will be collation "C.UTF-8"

------------

=> \d collate_test1

            Table "test.collate_test1"

 Column |  Type   | Collation | Nullable | Default

--------+---------+-----------+----------+---------

 a      | integer |           |          |

 b      | text    | en-x-icu  | not null |

-----------------------------------------------

My guess is that the following should be the same.



My reading of the docs say this is consistent with outcome #2.


 David J.

pgsql-general by date:

Previous
From: jian he
Date:
Subject: cast to domain with default collation issue.
Next
From: Tom Lane
Date:
Subject: Re: cast to domain with default collation issue.