Re: [HACKERS] pgbench - minor fix for meta command only scripts

Поиск
Список
Период
Сортировка
Искать
От
Fabien COELHO
Тема
Re: [HACKERS] pgbench - minor fix for meta command only scripts
Дата
Msg-id
alpine.DEB.2.20.1709111044310.32517@lancre
Ответ на
Список
Дерево обсуждения
pgbench - minor fix for meta command only scripts Fabien COELHO <coelho@cri.ensmp.fr>
Re: pgbench - minor fix for meta command only scripts Michael Paquier <michael.paquier@gmail.com>
Re: pgbench - minor fix for meta command only scripts Fabien COELHO <coelho@cri.ensmp.fr>
Re: pgbench - minor fix for meta command only scripts Tom Lane <tgl@sss.pgh.pa.us>
Re: pgbench - minor fix for meta command only scripts Fabien COELHO <coelho@cri.ensmp.fr>
Re: pgbench - minor fix for meta command only scripts Fabien COELHO <coelho@cri.ensmp.fr>
Re: pgbench - minor fix for meta command only scripts Heikki Linnakangas <hlinnaka@iki.fi>
Re: pgbench - minor fix for meta command only scripts Fabien COELHO <coelho@cri.ensmp.fr>
Re: pgbench - minor fix for meta command only scripts Fabien COELHO <coelho@cri.ensmp.fr>
Re: pgbench - minor fix for meta command only scripts Heikki Linnakangas <hlinnaka@iki.fi>
Re: [HACKERS] pgbench - minor fix for meta command only scripts Jeff Janes <jeff.janes@gmail.com>
Re: [HACKERS] pgbench - minor fix for meta command only scripts Fabien COELHO <coelho@cri.ensmp.fr>
Re: [HACKERS] pgbench - minor fix for meta command only scripts Jeff Janes <jeff.janes@gmail.com>
Re: [HACKERS] pgbench - minor fix for meta command only scripts Fabien COELHO <coelho@cri.ensmp.fr>
Re: [HACKERS] pgbench - minor fix for meta command only scripts Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] pgbench - minor fix for meta command only scripts Fabien COELHO <coelho@cri.ensmp.fr>
Re: [HACKERS] pgbench - minor fix for meta command only scripts Jeff Janes <jeff.janes@gmail.com>
Re: [HACKERS] pgbench - minor fix for meta command only scripts Fabien COELHO <coelho@cri.ensmp.fr>
Re: [HACKERS] pgbench - minor fix for meta command only scripts Noah Misch <noah@leadboat.com>
Re: [HACKERS] pgbench - minor fix for meta command only scripts Jeff Janes <jeff.janes@gmail.com>
Re: [HACKERS] pgbench - minor fix for meta command only scripts Fabien COELHO <coelho@cri.ensmp.fr>
Re: [HACKERS] pgbench - minor fix for meta command only scripts Heikki Linnakangas <hlinnaka@iki.fi>

Hello Jeff,

Ok, the problem was a little bit more trivial than I thought.

The issue is that under a low rate there may be no transaction in 
progress, however the wait procedure was relying on select's timeout. If 
nothing is active there is nothing to wait for, thus it was an active loop 
in this case...

I've introduced a usleep call in place of select for this particular 
case. Hopefully this is portable.

ISTM that this bug exists since rate was introduced, so shame on me and 
back-patching should be needed.

-- 
Fabien.
-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers
В списке pgsql-hackers по дате отправления
От: Amit Langote
Дата:
От: Christoph Berg
Дата:
FAQ