RE: ORDER BY DESC and NULLS LAST by default

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I agree on this approach!
Sarwar




Sent from my Galaxy



-------- Original message --------
From: Tom Lane <tgl@xxxxxxxxxxxxx>
Date: 10/27/23 2:08 PM (GMT-05:00)
To: Loles <lolesft@xxxxxxxxx>
Cc: pgsql-admin@xxxxxxxxxxxxxx
Subject: Re: ORDER BY DESC and NULLS LAST by default

Loles <lolesft@xxxxxxxxx> 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



[Index of Archives]     [Postgresql Home]     [Postgresql General]     [Postgresql Performance]     [Postgresql PHP]     [Postgresql Jobs]     [PHP Users]     [PHP Databases]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Databases]     [Yosemite Forum]

  Powered by Linux