Re: Seg fault in pgbench

Fabien COELHO <coelho@cri.ensmp.fr>

From: Fabien COELHO <coelho@cri.ensmp.fr>
To: Jeff Janes <jeff.janes@gmail.com>
Cc: pgsql-hackers <pgsql-hackers@postgresql.org>, Alvaro Herrera <alvherre@2ndquadrant.com>
Date: 2016-02-13T07:41:39Z
Lists: pgsql-hackers
> If I give pgbench an empty file, I get a segfault.
>
> $ touch empty.sql
> $ src/bin/pgbench/pgbench -T 60 -f empty.sql
> starting vacuum...end.
> Segmentation fault (core dumped)

Oops, shame on me:-(

I should have tested this one, especially as I tested it for other 
changes in pgbench...

Thanks for the report, and for Alvaro's fix.

-- 
Fabien.


Commits

  1. pgbench: fix segfault with empty sql file

  2. pgbench: improve multi-script support