From: Sebastien Flaesch <sebastien.flaesch@4js.com>
To: pgsql-sql <pgsql-sql@lists.postgresql.org>
Subject: Global setting for ORDER BY ... NULLS FIRST / LAST
Date: Tue, 1 Mar 2022 14:16:23 +0000
Message-ID: <DBAP191MB12893AA929975291A05E2938B0029@DBAP191MB1289.EURP191.PROD.OUTLOOK.COM> (raw)
Hello!
Is there a global PostgreSQL server setting or SQL session parameter that defines the default for ORDER BY ... NULLS FIRST / LAST ?
Assuming that it would be something like "NULL is lowest value, or NULL is highest value", to get the expected behavior when using ASC/DESC options of ORDER BY ...
That would help to migrate to PostgreSQL for DB engines having a different default behavior regarding NULL sorting.
Thanks!
Seb
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 using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: sebastien.flaesch@4js.com, pgsql-sql@lists.postgresql.org
Subject: Re: Global setting for ORDER BY ... NULLS FIRST / LAST
In-Reply-To: <DBAP191MB12893AA929975291A05E2938B0029@DBAP191MB1289.EURP191.PROD.OUTLOOK.COM>
* 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