Re: ORDER BY DESC and NULLS LAST by default - Mailing list pgsql-admin

From Tom Lane
Subject Re: ORDER BY DESC and NULLS LAST by default
Date
Msg-id 1586759.1698430099@sss.pgh.pa.us
Whole thread Raw
In response to Re: ORDER BY DESC and NULLS LAST by default  (Loles <lolesft@gmail.com>)
Responses RE: ORDER BY DESC and NULLS LAST by default
List pgsql-admin
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



pgsql-admin by date:

Previous
From: "David G. Johnston"
Date:
Subject: Re: ORDER BY DESC and NULLS LAST by default
Next
From: Tom Lane
Date:
Subject: Re: pg_restore -L reordering of the statements does not work