RE: ORDER BY DESC and NULLS LAST by default

Поиск
Список
Период
Сортировка
От M Sarwar
Тема RE: ORDER BY DESC and NULLS LAST by default
Дата
Msg-id DM4PR19MB59784B4DCDE874D2674A8F1BD3DCA@DM4PR19MB5978.namprd19.prod.outlook.com
обсуждение исходный текст
Ответ на Re: ORDER BY DESC and NULLS LAST by default  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-admin
I agree on this approach!
Sarwar




Sent from my Galaxy



-------- Original message --------
From: Tom Lane <tgl@sss.pgh.pa.us>
Date: 10/27/23 2:08 PM (GMT-05:00)
To: Loles <lolesft@gmail.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: ORDER BY DESC and NULLS LAST by default

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 по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: pg_restore -L reordering of the statements does not work
Следующее
От: Aditya D
Дата:
Сообщение: Re: pg_restore -L reordering of the statements does not work