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 <[email protected]> Discussion: https://postgr.es/m/[email protected] Branch ------ REL_15_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/34f51196573ca19d83707d30b218c65b46f42d77 Modified Files -------------- src/bin/pgbench/pgbench.c | 44 ++++++++++++++++------------ src/bin/pgbench/t/001_pgbench_with_server.pl | 2 ++ 2 files changed, 28 insertions(+), 18 deletions(-)
