pgsql: pgbench: fix segfault with empty sql file

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема pgsql: pgbench: fix segfault with empty sql file
Дата
Msg-id E1aUK7x-00012l-8U@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
pgbench: fix segfault with empty sql file

Commit 1d0c3b3f8a introduced a bug that causes pgbench to crash if an
empty script file is specified.  Fix it by rejecting such files at
startup, which is the historical and intended behavior.

Reported-By: Jeff Janes
Discussion: https://www.postgresql.org/message-id/CAMkU=1zxKUbLPOt9hQWFp14pTc=V0cGo2GQBbn2GsK2Pu+8ZfA@mail.gmail.com

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/db94419ffd6833da27176f6cca843483b4515065

Modified Files
--------------
src/bin/pgbench/pgbench.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: pgsql: isolationtester: don't repeat the is-it-waiting query when retry
Следующее
От: Alvaro Herrera
Дата:
Сообщение: pgsql: pgbench: cleanup use of a "logfile" parameter