From: PG Bug reporting form <noreply@postgresql.org>
To: pgsql-bugs@lists.postgresql.org
Cc: thomas.bessou@stockly.ai
Subject: BUG #16077: Sorting of table list depends on platform
Date: Thu, 24 Oct 2019 16:09:58 +0000
Message-ID: <16077-6f297cabd744c86c@postgresql.org> (raw)
The following bug has been logged on the website:
Bug reference: 16077
Logged by: Ten Ten
Email address: thomas.bessou@stockly.ai
PostgreSQL version: 10.9
Operating system: Mac OS/Linux
Description:
Running the following query:
```
SELECT table_name, table_schema from information_schema.tables
WHERE table_schema = 'your schema' AND table_type LIKE 'BASE TABLE' ORDER BY
table_name;
```
The output differs on Linux and Mac versions, though the tables are the same
(setup by the same script from an empty database).
We would assume ORDER BY has the same behaviour on all platforms.
We have the same output for this query on Linux Postgres 10.6 and Linux
Postgres 11.5.
On Mac with Postgres 10.6 and on Mac with Postgres 10.9, we also have the
same output, but it is different from the Linux one.
This causes issues such as this one:
https://github.com/diesel-rs/diesel/issues/2202#issuecomment-544148551
Specifically, it seems the Linux version ignores underscores ('_') while
sorting this query, while the Mac version doesn't.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: noreply@postgresql.org, thomas.bessou@stockly.ai
Subject: Re: BUG #16077: Sorting of table list depends on platform
In-Reply-To: <16077-6f297cabd744c86c@postgresql.org>
References: <16077-6f297cabd744c86c@postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox