PATCH: pgbench - random sampling of transaction written into log

Поиск
Список
Период
Сортировка
От Tomas Vondra
Тема PATCH: pgbench - random sampling of transaction written into log
Дата
Msg-id 9aecf17dfb889cd3e5c0860f73298c14.squirrel@sq.gransy.com
обсуждение исходный текст
Ответы Re: PATCH: pgbench - random sampling of transaction written into log
Список pgsql-hackers
Hi,

attached is a patch that adds support for random sampling in pgbench, when
it's executed with "-l" flag. You can do for example this:

  $ pgbench -l -T 120 -R 1 db

and then only 1% of transactions will be written into the log file. If you
omit the tag, all the transactions are written (i.e. it's backward
compatible).

Recently I've been using pgbench on hardware that can handle a lot of
transactions (various flavors of SSDs, lots of RAM, ...), and in such
cases the log files may get pretty big (even several gigabytes for a
single 1-hour run). A reasonable random sample (along with the stats
provided by pgbench itself) is often more than enough in such cases.

kind regards
Tomas
Вложения

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: default_isolation_level='serializable' crashes on Windows
Следующее
От: "Tomas Vondra"
Дата:
Сообщение: PATCH: pgbench - aggregation of info written into log