Re: strtoll/strtoull emulation

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: strtoll/strtoull emulation
Дата
Msg-id 13197.1401807317@sss.pgh.pa.us
обсуждение исходный текст
Ответ на strtoll/strtoull emulation  (Andres Freund <andres@2ndquadrant.com>)
Ответы Re: strtoll/strtoull emulation
Список pgsql-hackers
Andres Freund <andres@2ndquadrant.com> writes:
> I recently had the need to use strtoull() in postgres code. Only to
> discover that that's not available on some platforms. IIRC windows/msvc
> was one of them. Now 9d7ded0f4277f5c0063eca8e871a34e2355a8371 added
> another user - guarded by HAVE_STRTOULL. That commit will make things
> worse on windows btw...

Worse than what?  AFAICT, the old code would produce complete garbage
on Windows.  The new code at least gives the right answer for rowcounts
up to 4GB.

> How about adding emulation for strtoll/strtoull to port/? The BSDs have
> easily crib-able functions available...

Ugh.  Surely Windows has got *some* equivalent, perhaps named differently?
        regards, tom lane



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

Предыдущее
От: Magnus Hagander
Дата:
Сообщение: Re: pg_basebackup failed to back up large file
Следующее
От: Gurjeet Singh
Дата:
Сообщение: Re: Proposing pg_hibernate