Re: comparison operators

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: comparison operators
Дата
Msg-id 19785.1403047327@sss.pgh.pa.us
обсуждение исходный текст
Ответ на comparison operators  (Andrew Dunstan <andrew@dunslane.net>)
Ответы Re: comparison operators  (Andres Freund <andres@2ndquadrant.com>)
Список pgsql-hackers
Andrew Dunstan <andrew@dunslane.net> writes:
> I went to have a look at documenting the jsonb comparison operators, and 
> found that the docs on comparison operators contain this:

>     Comparison operators are available for all relevant data types.

> They neglect to specify further, however. This doesn't seem very 
> satisfactory. How is a user to know which are relevant? I know they are 
> not available for xml and json, but are for jsonb. Just talking about 
> "all relevant types" seems rather hand-wavy.

Well, there are 38 default btree opclasses in the standard system ATM.
Are we worried enough about this to list them all explicitly?  Given the
lack of complaints to date, I'm not.

However, if we try to fudge it by saying something like "available for
all data types for which there is a natural linear order", I'm not
sure that that's 100% true; and it's certainly not complete, since
for instance jsonb's ordering is rather artificial, and the area-based
orderings of the built-in geometric types are even more so.
        regards, tom lane



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

Предыдущее
От: Jeff Janes
Дата:
Сообщение: Re: [BUGS] BUG #8673: Could not open file "pg_multixact/members/xxxx" on slave during hot_standby
Следующее
От: Andres Freund
Дата:
Сообщение: Re: comparison operators