Skip site navigation (1) Skip section navigation (2)

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

From: Teodor Sigaev <teodor(at)sigaev(dot)ru>
To: Gavin Sherry <swm(at)linuxworld(dot)com(dot)au>
Cc: Teodor Sigaev <teodor(at)postgresql(dot)org>, pgsql-committers(at)postgresql(dot)org
Subject: Re: pgsql: Fix compiler warnings on 64-bit boxes:
Date: 2006-09-06 08:05:41
Message-ID: 44FE8155.9080401@sigaev.ru (view raw or flat)
Thread:
Lists: pgsql-committerspgsql-hackers
> 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(at)sigaev(dot)ru
                                                    WWW: http://www.sigaev.ru/

In response to

Responses

pgsql-hackers by date

Next:From: Michael PaesoldDate: 2006-09-06 08:11:13
Subject: Re: Win32 hard crash problem
Previous:From: Gavin SherryDate: 2006-09-06 07:37:46
Subject: Re: pgsql: Fix compiler warnings on 64-bit boxes:

pgsql-committers by date

Next:From: Gavin SherryDate: 2006-09-06 08:13:37
Subject: Re: pgsql: Fix compiler warnings on 64-bit boxes:
Previous:From: Gavin SherryDate: 2006-09-06 07:37:46
Subject: Re: pgsql: Fix compiler warnings on 64-bit boxes:

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group