Re: pgsql: Fix pg_size_pretty() to avoid overflow for inputs close to INT64

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: pgsql: Fix pg_size_pretty() to avoid overflow for inputs close to INT64
Дата
Msg-id 18779.1303968115@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: pgsql: Fix pg_size_pretty() to avoid overflow for inputs close to INT64  (Alvaro Herrera <alvherre@commandprompt.com>)
Ответы Re: pgsql: Fix pg_size_pretty() to avoid overflow for inputs close to INT64
Список pgsql-committers
Alvaro Herrera <alvherre@commandprompt.com> writes:
> Excerpts from Tom Lane's message of mié abr 27 17:10:37 -0300 2011:
>> Alvaro Herrera <alvherre@commandprompt.com> writes:
>>> Apparently this change is causing Moa's SunStudio compiler to fail an
>>> assertion.

>> [ scratches head... ]  Hard to see why, there's nothing at all
>> interesting in that code.

> I agree, but it fails exactly in that code, and started to fail
> immediately after that patch.

> Maybe casting the 2 to int64 would fix it?

I'm not excited about trying random code changes to dodge a compiler bug
with a 24-hour turnaround time.  Dave, can you poke at this?

            regards, tom lane

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

Предыдущее
От: h-saito@pgfoundry.org (Hiroshi Saito)
Дата:
Сообщение: psqlodbc - psqlodbc: Prep release 09.00.0300.
Следующее
От: dpage@pgfoundry.org (Dave Page)
Дата:
Сообщение: edb-debugger - server: Support the new DefineCustomStringVariable API in