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 8433379a-6f86-ba63-82aa-18691efc0174@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
List pgsql-hackers
On 2019-04-29 19:32, Tom Lane wrote:
> Another problem is that while "%lu" format specifiers are portable,
> INT64_FORMAT is a *big* pain, not least because you can't put it into
> translatable strings without causing problems.  To the extent that
> we could go over to "%zu" instead, maybe this could be finessed,
> but blind "s/long/int64/g" isn't going to be any fun.

Since we control our own snprintf now, this could probably be addressed
somehow, right?

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



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: FullTransactionId changes are causing portability issues
Next
From: Peter Eisentraut
Date:
Subject: Re: "long" type is not appropriate for counting tuples