Re: Odd 9.4, 9.3 buildfarm failure on s390x

Поиск
Список
Период
Сортировка
От Andrew Gierth
Тема Re: Odd 9.4, 9.3 buildfarm failure on s390x
Дата
Msg-id 87h8i7ejqg.fsf@news-spur.riddles.org.uk
обсуждение исходный текст
Ответ на Re: Odd 9.4, 9.3 buildfarm failure on s390x  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
>>>>> "Tom" == Tom Lane <tgl@sss.pgh.pa.us> writes:

 > Andrew Gierth <andrew@tao11.riddles.org.uk> writes:
 >> Because int being more than 32 bits is the simplest explanation for
 >> this difference.

 Tom> Curious to hear your reasoning behind that statement? I hadn't
 Tom> gotten further than "memcmp is broken" ... and neither of those
 Tom> theories is tenable, because if they were true then a lot more
 Tom> things besides uuid sorting would be falling over.

memcmp() returns an int, and guarantees only the sign of the result, so
((int32) memcmp()) may have the wrong value if int is wider than int32.

But yeah, it seems unlikely that it would break for uuid but not bytea
(or text in collate C).

-- 
Andrew (irc:RhodiumToad)


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

Предыдущее
От: Andres Freund
Дата:
Сообщение: [RFC] Removing "magic" oids
Следующее
От: Amit Kapila
Дата:
Сообщение: Re: SerializeParamList vs machines with strict alignment