pgsql: Suppress -0 in the C field of lines computed by line_construct_p

Поиск
Список
Период
Сортировка
От Tom Lane
Тема pgsql: Suppress -0 in the C field of lines computed by line_construct_p
Дата
Msg-id E1VZnTi-0007K9-T1@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Suppress -0 in the C field of lines computed by line_construct_pts().

It's not entirely clear why some PPC machines are generating -0 here, since
the underlying computation should be exactly 0 - 0.  Perhaps there's some
wider-than-nominal-precision calculations happening?  Anyway, the best way
to avoid platform-dependent results seems to be to explicitly reset -0 to
regular zero.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/43fe90f66a0b200f6c32507428349afb45f661ca

Modified Files
--------------
src/backend/utils/adt/geo_ops.c |    3 +++
1 file changed, 3 insertions(+)


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

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: pgsql: Tweak "line" test to avoid negative zeros on some platforms
Следующее
От: Tom Lane
Дата:
Сообщение: pgsql: Revert "Tweak "line" test to avoid negative zeros on some platfo