Re: PATCH: pgbench / int64 instead of int for xact count

Поиск
Список
Период
Сортировка
От Tomas Vondra
Тема Re: PATCH: pgbench / int64 instead of int for xact count
Дата
Msg-id 5382358F.9040700@fuzzy.cz
обсуждение исходный текст
Ответ на Re: PATCH: pgbench / int64 instead of int for xact count  (Andres Freund <andres@2ndquadrant.com>)
Ответы Re: PATCH: pgbench / int64 instead of int for xact count  (Tom Lane <tgl@sss.pgh.pa.us>)
Список 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

Вложения

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: [9.5] possible fast path for pinning a page multiple times
Следующее
От: Tom Lane
Дата:
Сообщение: Re: PATCH: pgbench / int64 instead of int for xact count