Re: "long" type is not appropriate for counting tuples - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: "long" type is not appropriate for counting tuples
Date
Msg-id ba8ddfb5-384d-a21b-1358-0cf5e604f325@2ndquadrant.com
Whole thread Raw
In response to Re: "long" type is not appropriate for counting tuples  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: "long" type is not appropriate for counting tuples  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
On 2019-05-22 17:52, Tom Lane wrote:
> I don't really see how controlling snprintf is enough to get somewhere
> on this.  Sure we could invent some new always-64-bit length modifier
> and teach snprintf.c about it, but none of the other tools we use
> would know about it.  I don't want to give up compiler cross-checking
> of printf formats, do you?

Could we define int64 to be long long int on all platforms and just
always use %lld?

-- 
Peter Eisentraut              http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services



pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: "long" type is not appropriate for counting tuples
Next
From: Mark Dilger
Date:
Subject: Re: Is it safe to ignore the return value of SPI_finish and SPI_execute?