Re: pgsql: Fix compiler warnings on 64-bit boxes:

Поиск
Список
Период
Сортировка
От Gavin Sherry
Тема Re: pgsql: Fix compiler warnings on 64-bit boxes:
Дата
Msg-id Pine.LNX.4.58.0609061812130.6703@linuxworld.com.au
обсуждение исходный текст
Ответ на Re: pgsql: Fix compiler warnings on 64-bit boxes:  (Teodor Sigaev <teodor@sigaev.ru>)
Список pgsql-committers
On Wed, 6 Sep 2006, Teodor Sigaev wrote:

> > It might seem a minor quibble, but it seems like a more reliable approach
> > might be to cast to a 64 bit type and user a 64 bit int formatter.
> %ld ?  %lld? depending on architecture?
>
> >
> > It seems unlikely that state->ptr - state->begin would yield a number that
> > large but I don't know that that would be true of every platform or user.
>
> I don't believe that it can be more that 1Gb - it's a limit for any varlena type.
>

True. int32 should be fine.

Thanks,

gavin

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

Предыдущее
От: Teodor Sigaev
Дата:
Сообщение: Re: pgsql: Fix compiler warnings on 64-bit boxes:
Следующее
От: knt@pgfoundry.org (User Knt)
Дата:
Сообщение: plscheme - plscheme: Added basic SPI_execute functionality and corrected