pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Fix pgbench in prepared mode with an empty pipeline
2+ messages / 1 participants
[nested] [flat]

* pgsql: Fix pgbench in prepared mode with an empty pipeline
@ 2023-05-25 10:37  Alvaro Herrera <alvherre@alvh.no-ip.org>
  0 siblings, 0 replies; 2+ messages in thread

From: Alvaro Herrera @ 2023-05-25 10:37 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/8f5e42d3346924b5d6330208d62ec1b19fdbc110

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



^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* pgsql: Fix pgbench in prepared mode with an empty pipeline
@ 2023-05-25 10:37  Alvaro Herrera <alvherre@alvh.no-ip.org>
  0 siblings, 0 replies; 2+ messages in thread

From: Alvaro Herrera @ 2023-05-25 10:37 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.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

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



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2023-05-25 10:37 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2023-05-25 10:37 pgsql: Fix pgbench in prepared mode with an empty pipeline Alvaro Herrera <alvherre@alvh.no-ip.org>
2023-05-25 10:37 pgsql: Fix pgbench in prepared mode with an empty pipeline Alvaro Herrera <alvherre@alvh.no-ip.org>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox