Re: txid strtoull fix

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: txid strtoull fix
Дата
Msg-id 1741.1191881365@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: txid strtoull fix  ("Marko Kreen" <markokr@gmail.com>)
Список pgsql-patches
"Marko Kreen" <markokr@gmail.com> writes:
> On 10/8/07, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> (Note that your overflow test didn't actually work; AFAIK there
>> really isn't any decent solution other than dividing at each step.)

> Hmm.  It did seem to work here.  Just in case I peeked into
> FreeBSD strtoull() and this patch imitates their method.

Well, it worked for the one specific case you tested, but there are
other cases it would fail to detect overflow for.  (When you're
multiplying by ten, the overflow might not be small.)  The FreeBSD
way looks OK though --- applied.

            regards, tom lane

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

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: [HACKERS] Add function for quote_qualified_identifier?
Следующее
От: Tom Lane
Дата:
Сообщение: Preliminary patch for tsearch example dictionaries/parsers in contrib