Re: PATCH: pgbench / int64 instead of int for xact count - Mailing list pgsql-hackers

From Tomas Vondra
Subject Re: PATCH: pgbench / int64 instead of int for xact count
Date
Msg-id 5382358F.9040700@fuzzy.cz
Whole thread Raw
In response to Re: PATCH: pgbench / int64 instead of int for xact count  (Andres Freund <andres@2ndquadrant.com>)
Responses Re: PATCH: pgbench / int64 instead of int for xact count
List pgsql-hackers
On 25.5.2014 19:05, Andres Freund wrote:
>>          printf("number of transactions per client: %d\n", nxacts);
>> -        printf("number of transactions actually processed: %d/%d\n",
>> +        printf("number of transactions actually processed: %ld/%d\n",
>>                 normal_xacts, nxacts * nclients);
>
> That's not right though. On windows a long (indicated by the %l) is only
> 4 bytes wide. Check INT64_FORMAT. That's generated by configure/platform
> template files and should always be correct.

Oh, right. v2 of the patch attached.

Tomas

Attachment

pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: [9.5] possible fast path for pinning a page multiple times
Next
From: Tom Lane
Date:
Subject: Re: PATCH: pgbench / int64 instead of int for xact count