Re: PATCH: pgbench - logging aggregated info and transactions at the same time

Поиск
Список
Период
Сортировка
От Fabien COELHO
Тема Re: PATCH: pgbench - logging aggregated info and transactions at the same time
Дата
Msg-id alpine.DEB.2.10.1505021048190.30090@sto
обсуждение исходный текст
Ответ на Re: PATCH: pgbench - logging aggregated info and transactions at the same time  (Fabien COELHO <coelho@cri.ensmp.fr>)
Список pgsql-hackers

> In doLog, the sample rate test should be mixed in the tlogfile condition
> so as to avoid calling rand if there is no logging anyway.
>
>  if (tlogfile && sample_rate != 0 && ...)

Oops, wrong logic. Rather:
  if (tlogfile && (sample_rate == 0 || ... random stuff))

-- 
Fabien.



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

Предыдущее
От: Fabien COELHO
Дата:
Сообщение: Re: PATCH: pgbench - logging aggregated info and transactions at the same time
Следующее
От: Andrew Dunstan
Дата:
Сообщение: Re: CTE optimization fence on the todo list?