pgsql: Fix pgbench in prepared mode with an empty pipeline

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема pgsql: Fix pgbench in prepared mode with an empty pipeline
Дата
Msg-id E1q28LT-001dpp-5o@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
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

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(-)


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

Предыдущее
От: Michael Paquier
Дата:
Сообщение: pgsql: Fix typo in TAP tests of vacuumdb
Следующее
От: Daniel Gustafsson
Дата:
Сообщение: pgsql: doc: Fix example query for pg_walinspect