]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Fix pgbench in prepared mode with an empty pipeline
authorAlvaro Herrera <alvherre@alvh.no-ip.org>
Thu, 25 May 2023 10:36:18 +0000 (12:36 +0200)
committerAlvaro Herrera <alvherre@alvh.no-ip.org>
Thu, 25 May 2023 10:36:18 +0000 (12:36 +0200)
commit34f51196573ca19d83707d30b218c65b46f42d77
tree6de2a8b1c3939c51b82c8d6cd9038ebb826550b2
parent4729d1e8aab90bc5861a4ff01fc306ebf1bec433
Fix pgbench in prepared mode with an empty pipeline

It crashes because it references memory that's not allocated in that
particular case.  Fix by allocating it.

Reported-by: Alexander Lakhin <exclusion@gmail.com>
Discussion: https://postgr.es/m/bcf802a6-afc1-95b9-7bf4-c5dd868ec144@gmail.com
src/bin/pgbench/pgbench.c
src/bin/pgbench/t/001_pgbench_with_server.pl