Re: Reverse-sort indexes and NULLS FIRST/LAST sorting

Поиск
Список
Период
Сортировка
От Michael Glaesemann
Тема Re: Reverse-sort indexes and NULLS FIRST/LAST sorting
Дата
Msg-id DBE187F8-A7BD-4058-AE61-07D9C611FDF1@seespotcode.net
обсуждение исходный текст
Ответ на Re: Reverse-sort indexes and NULLS FIRST/LAST sorting  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Reverse-sort indexes and NULLS FIRST/LAST sorting  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On Jan 4, 2007, at 13:33 , Tom Lane wrote:

> Another possible objection is that in the proposed CREATE INDEX syntax
>
>     index-column-id [ opclass-name ] [ DESC ] [ NULLS {FIRST|LAST} ]
>
> DESC must be a fully reserved word else it can't be distinguished from
> an opclass name.  But guess what, it already is.

A point in favor of using DESC over REVERSE as you had earlier  
proposed is that DESC is already a reserved word, while REVERSE isnt'  
even in the list of key words. As DESC is quite closely associated  
with its antonym ASC wrt ordering, any thoughts of allowing ASC as an  
optional noise word? Users may be surprised if ASC were to throw an  
error.

Michael Glaesemann
grzm seespotcode net




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

Предыдущее
От: David Fetter
Дата:
Сообщение: Re: -f option for pg_dumpall
Следующее
От: Dave Page
Дата:
Сообщение: Re: -f option for pg_dumpall