Re: txid strtoull fix

Поиск
Список
Период
Сортировка
От Marko Kreen
Тема Re: txid strtoull fix
Дата
Msg-id e51f66da0710081351l5083e34cp6c1cd770df4f439@mail.gmail.com
обсуждение исходный текст
Ответ на Re: txid strtoull fix  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: txid strtoull fix  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-patches
On 10/8/07, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> "Marko Kreen" <markokr@gmail.com> writes:
> > I noticed strtoull() causes problems on some buildfarm
> > machines.  As a fix I propose small str2num function inside
> > txid.c itself.  Main reason is that the txid actually does
> > not need fully-featured strtoull (radixes, whitespace skipping).
>
> Seems like a sane solution to me --- applied.
>
> (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.

This also seems to work, but please review, I'm don't feel
very sharp anymore...

--
marko

Вложения

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: txid strtoull fix
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: [HACKERS] Add function for quote_qualified_identifier?