Re: configure postgtresql to order NULLS FIRST instead of the defaultNULLS LAST

Поиск
Список
Период
Сортировка
От Vik Fearing
Тема Re: configure postgtresql to order NULLS FIRST instead of the defaultNULLS LAST
Дата
Msg-id 08a2987b-3843-66c6-f249-99d65acdd119@2ndquadrant.com
обсуждение исходный текст
Ответ на Re: configure postgtresql to order NULLS FIRST instead of the defaultNULLS LAST  ("David G. Johnston" <david.g.johnston@gmail.com>)
Ответы Re: configure postgtresql to order NULLS FIRST instead of thedefault NULLS LAST  (Jay Riddle <jcriddle4@yahoo.com>)
Список pgsql-novice
On 04/01/2019 08:09, David G. Johnston wrote:
> On Thursday, January 3, 2019, john snow <ofbizfanster@gmail.com
> <mailto:ofbizfanster@gmail.com>> wrote:
> 
>     is there a setting that is available for me to use to configure
>     Postgresql to order NULLS FIRST by default instead of NULLS LAST?
> 
> 
> No there is not and likely never will be as such an option introduces
> undesirable variability.


That, and the spec forbids it.

"If <null ordering> is not specified, then an implementation-defined
<null ordering> is implicit. The implementation-defined default for
<null ordering> shall not depend on the context outside of <sort
specification list>."
-- 
Vik Fearing                                          +33 6 46 75 15 36
http://2ndQuadrant.fr     PostgreSQL : Expertise, Formation et Support


В списке pgsql-novice по дате отправления:

Предыдущее
От: "David G. Johnston"
Дата:
Сообщение: Re: configure postgtresql to order NULLS FIRST instead of the defaultNULLS LAST
Следующее
От: Jay Riddle
Дата:
Сообщение: Re: configure postgtresql to order NULLS FIRST instead of thedefault NULLS LAST