From: | "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com> |
---|---|
To: | jian he <jian(dot)universality(at)gmail(dot)com> |
Cc: | "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: cast to domain with default collation issue. |
Date: | 2022-05-24 05:13:38 |
Message-ID: | CAKFQuwZB8iWL9btLWEr-Zo8tUMbCpKstEBP3gSQjVk6uCWbZKQ@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On Monday, May 23, 2022, jian he <jian(dot)universality(at)gmail(dot)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.
https://www.postgresql.org/docs/current/collation.html
David J.
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2022-05-24 05:33:51 | Re: cast to domain with default collation issue. |
Previous Message | jian he | 2022-05-24 05:02:25 | cast to domain with default collation issue. |