pgsql: Fix handling of pgbench's hash when no argument is provided - Mailing list pgsql-committers

From Michael Paquier
Subject pgsql: Fix handling of pgbench's hash when no argument is provided
Date
Msg-id E1fiucH-0007Ow-MF@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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
------
REL_11_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/c2e5f60db160d74ba862023ec460ace938f4fb1c

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


pgsql-committers by date:

Previous
From: Tom Lane
Date:
Subject: pgsql: Provide plpgsql tests for cases involving record field changes.
Next
From: Amit Kapila
Date:
Subject: pgsql: Fix the buffer release order for parallel index scans.