Re: pgsql: Fix compiler warnings on 64-bit boxes: - Mailing list pgsql-committers

From Teodor Sigaev
Subject Re: pgsql: Fix compiler warnings on 64-bit boxes:
Date
Msg-id 44FE8155.9080401@sigaev.ru
Whole thread Raw
In response to Re: pgsql: Fix compiler warnings on 64-bit boxes:  (Gavin Sherry <swm@linuxworld.com.au>)
Responses Re: pgsql: Fix compiler warnings on 64-bit boxes:
List pgsql-committers
> 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.


--
Teodor Sigaev                                   E-mail: teodor@sigaev.ru
                                                    WWW: http://www.sigaev.ru/

pgsql-committers by date:

Previous
From: Gavin Sherry
Date:
Subject: Re: pgsql: Fix compiler warnings on 64-bit boxes:
Next
From: Gavin Sherry
Date:
Subject: Re: pgsql: Fix compiler warnings on 64-bit boxes: