From: Tom Lane <tgl@sss.pgh.pa.us>
To: Loles <lolesft@gmail.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: ORDER BY DESC and NULLS LAST by default
Date: Fri, 27 Oct 2023 14:08:19 -0400
Message-ID: <1586759.1698430099@sss.pgh.pa.us> (raw)
In-Reply-To: <CA+FWGK4uAunKxZyPRv0vHqBXFJEFJkxyoB_k5XLSW+-HdeCDqg@mail.gmail.com>
References: <CA+FWGK7A=MYMZieF1qKz55cPH-WtJQbLzjXQLAU5o2_14mstZw@mail.gmail.com>
<C4B5BA76-C20C-4E85-AAD7-0FB1F472654B@jakobs.com>
<CA+FWGK4uAunKxZyPRv0vHqBXFJEFJkxyoB_k5XLSW+-HdeCDqg@mail.gmail.com>
Loles <lolesft@gmail.com> writes:
> I was really wondering if, just like you can disable autocommit mode in
> PostgreSQL, if you could configure some parameter so that ORDER BY, by
> default, would order DESC instead of ASC.
There is no such setting, and we'd be unlikely to consider adding one.
Bitter experience has taught us that GUC parameters that change query
behavior are usually bad ideas. Also, the SQL standard says
explicitly that ASC is the default behavior.
regards, tom lane
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-admin@postgresql.org
Cc: tgl@sss.pgh.pa.us, lolesft@gmail.com
Subject: Re: ORDER BY DESC and NULLS LAST by default
In-Reply-To: <1586759.1698430099@sss.pgh.pa.us>
* 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