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 script.

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


Attachment: pgbench-no-sql-fix-1.sql
Description: application/sql

Attachment: noop.sql
Description: application/sql

Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:

Reply via email to