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

From Andres Freund
Subject Re: "long" type is not appropriate for counting tuples
Date
Msg-id 671B8737-F044-41FF-A2F2-B72615E2245E@anarazel.de
Whole thread Raw
In response to Re: "long" type is not appropriate for counting tuples  (Peter Eisentraut <peter.eisentraut@2ndquadrant.com>)
Responses Re: "long" type is not appropriate for counting tuples  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Hi,

On May 22, 2019 7:39:41 AM PDT, Peter Eisentraut <peter.eisentraut@2ndquadrant.com> wrote:
>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?

z is for size_t though? Not immediately first how It'd help us?

Andres
--
Sent from my Android device with K-9 Mail. Please excuse my brevity.



pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: PG 12 draft release notes
Next
From: Oleksii Kliukin
Date:
Subject: upgrades in row-level locks can deadlock