pgbench - minor fix for meta command only scripts

From: Fabien COELHO <coelho(at)cri(dot)ensmp(dot)fr>
To: PostgreSQL Developers <pgsql-hackers(at)postgresql(dot)org>
Subject: pgbench - minor fix for meta command only scripts
Date: 2016-07-09 07:09:03
Message-ID: alpine.DEB.2.20.1607090850120.3412@sto
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

While testing meta-command pgbench only scripts, I noticed that there is
an infinite loop in threadRun, which means that other tasks such as
reporting progress do not get a chance.

The attached patch breaks this loop by always returning at the end of a

On "pgbench -T 3 -P 1 -f noop.sql", before this patch, the progress is not
shown, after it is.


Attachment Content-Type Size
pgbench-no-sql-fix-1.sql application/x-sql 679 bytes
noop.sql application/x-sql 11 bytes


Browse pgsql-hackers by date

  From Date Subject
Next Message Fabien COELHO 2016-07-09 07:27:41 pgbench - allow empty queries
Previous Message Fabien COELHO 2016-07-09 06:44:25 Re: pgbench more operators & functions