Re: Fixing row comparison semantics

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Fixing row comparison semantics
Дата
Msg-id 14907.1135435985@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Fixing row comparison semantics  (Christopher Kings-Lynne <chriskl@familyhealth.com.au>)
Ответы Re: Fixing row comparison semantics  (Bruce Momjian <pgman@candle.pha.pa.us>)
Список pgsql-hackers
Christopher Kings-Lynne <chriskl@familyhealth.com.au> writes:
> Can someone explain to me how:
> (a, b) < (1, 2)
> is different to
> a < 1 and b < 2

Right at the moment our code interprets it that way, but this behavior
is wrong per spec.  It should be an ordered column-by-column comparison,
so that the equivalent simple expression is
(a < 1) OR (a = 1 AND b < 2)
        regards, tom lane


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Fixing row comparison semantics
Следующее
От: Greg Stark
Дата:
Сообщение: Re: [Bizgres-general] WAL bypass for INSERT, UPDATE and