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)
commit8f5e42d3346924b5d6330208d62ec1b19fdbc110
tree84450645d8944e28206b0ec1ad3ac156fec5632d
parentecb968e7e3da69a39d3efab69fa63fe6c8d04b5f
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