pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alvaro Herrera <alvherre@alvh.no-ip.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Fix pgbench in prepared mode with an empty pipeline
Date: Thu, 25 May 2023 10:37:22 +0000
Message-ID: <E1q28LT-001dpo-45@gemulon.postgresql.org> (raw)

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



view thread (2+ messages)  latest in thread

Message-ID: <E1q28LT-001dpo-45@gemulon.postgresql.org>
Permalink:  ../E1q28LT-001dpo-45@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1q28LT-001dpo-45@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: alvherre@alvh.no-ip.org, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Fix pgbench in prepared mode with an empty pipeline
  In-Reply-To: <E1q28LT-001dpo-45@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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