From: | Jiří Fejfar <jurafejfar(at)gmail(dot)com> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | pgsql-bugs(at)lists(dot)postgresql(dot)org |
Subject: | Re: BUG #16583: merge join on tables with different DB collation behind postgres_fdw fails |
Date: | 2020-08-19 06:08:42 |
Message-ID: | CA+8wVNXXwj=hY9W8CNM=-RMd4_zuwVvJW3FWB+VZ8ObGT+DjWQ@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs pgsql-hackers |
On Wed, 19 Aug 2020 at 07:53, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
>
> =?UTF-8?B?SmnFmcOtIEZlamZhcg==?= <jurafejfar(at)gmail(dot)com> writes:
> > I am just wondering: if it is bug in IMPORT FOREIGN SCHEMA, how it is
> > possible the bug is not present [1] when provided psql script [2] is run
> > on Alpine Linux?
>
> [ shrug ] Could easy be that Alpine distributes dumbed-down locale
> definitions in which the sort order isn't actually any different
> between those two locales. Did you check what the sort order of
> your test data looks like in each case?
>
> regards, tom lane
Oh, I can see on Alpine that even local tables are ordered like with
en.US-UTF8 even if DB has default cs.CZ-UTF8.
postgres=# \l
List of databases
Name | Owner | Encoding | Collate | Ctype |
Access privileges
-----------+----------+----------+-------------+-------------+-----------------------
db_cz | postgres | UTF8 | cs_CZ.UTF-8 | cs_CZ.UTF-8 |
db_en | postgres | UTF8 | en_US.UTF-8 | en_US.UTF-8 |
...
postgres=# \c db_cz ;
You are now connected to database "db_cz" as user "postgres".
db_cz=# select * from t_nuts order by label;
id | label
----+--------
1 | CZ0100
2 | CZ0201
...
11 | CZ020A
12 | CZ020B
13 | CZ020C
...
It is mentioned in Alpine docker docs [1] that "Alpine-based variants
do not support locales;".
Thanks, J.
From | Date | Subject | |
---|---|---|---|
Next Message | PG Bug reporting form | 2020-08-19 10:31:49 | BUG #16585: Wrong filtering on a COALESCE field after using GROUPING SETS |
Previous Message | Tom Lane | 2020-08-19 05:53:07 | Re: BUG #16583: merge join on tables with different DB collation behind postgres_fdw fails |
From | Date | Subject | |
---|---|---|---|
Next Message | Ashutosh Sharma | 2020-08-19 06:09:41 | Re: recovering from "found xmin ... from before relfrozenxid ..." |
Previous Message | Andy Fan | 2020-08-19 05:55:16 | Re: Pulling up direct-correlated ANY_SUBLINK |