pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Paquier <michael@paquier.xyz>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Fix handling of pgbench's hash when no argument is provided
Date: Fri, 27 Jul 2018 04:44:37 +0000
Message-ID: <E1fiucH-0007Ov-M8@gemulon.postgresql.org> (raw)

Fix handling of pgbench's hash when no argument is provided

Depending on the platform used, this can cause a crash in the worst
case, or an unhelpful error message, so fail gracefully.

Author: Fabien Coelho
Discussion: https://postgr.es/m/alpine.DEB.2.21.1807262302550.29874@lancre
Backpatch: 11-, where hash() has been added in pgbench.

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/39d51fe87dae843574fa2349128679800bfe7ccd

Modified Files
--------------
src/bin/pgbench/exprparse.y                |  2 +-
src/bin/pgbench/t/002_pgbench_no_server.pl | 20 ++++++++++++++++++++
2 files changed, 21 insertions(+), 1 deletion(-)



view thread (2+ messages)  latest in thread

Message-ID: <E1fiucH-0007Ov-M8@gemulon.postgresql.org>
Permalink:  ../E1fiucH-0007Ov-M8@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1fiucH-0007Ov-M8@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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: michael@paquier.xyz
  Subject: Re: pgsql: Fix handling of pgbench's hash when no argument is provided
  In-Reply-To: <E1fiucH-0007Ov-M8@gemulon.postgresql.org>
  References: <E1fiucH-0007Ov-M8@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