| От | Tom Lane |
|---|---|
| Тема | Re: ORDER BY DESC and NULLS LAST by default |
| Дата | |
| Msg-id | 1586759.1698430099@sss.pgh.pa.us обсуждение |
| Ответ на | Re: ORDER BY DESC and NULLS LAST by default (Loles <lolesft@gmail.com>) |
| Ответы |
RE: ORDER BY DESC and NULLS LAST by default
|
| Список | 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 по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера