Fix pgbench in prepared mode with an empty pipeline
Alvaro Herrera <alvherre@alvh.no-ip.org>
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
Files
| Path | Change | +/− |
|---|---|---|
| src/bin/pgbench/pgbench.c | modified | +26 −18 |
| src/bin/pgbench/t/001_pgbench_with_server.pl | modified | +2 −0 |
Discussion
- pgbench: using prepared BEGIN statement in a pipeline could cause an error 26 messages · 2021-07-16 → 2023-05-25