]> granicus.if.org Git - postgresql/commit
Fix handling of pgbench's hash when no argument is provided
authorMichael Paquier <michael@paquier.xyz>
Fri, 27 Jul 2018 04:43:36 +0000 (13:43 +0900)
committerMichael Paquier <michael@paquier.xyz>
Fri, 27 Jul 2018 04:43:36 +0000 (13:43 +0900)
commitc2e5f60db160d74ba862023ec460ace938f4fb1c
treee9fe63eeaa7e2aee1c2d544fc0383819665418f1
parentc606f10ff832fc54258bb8a259a8e0daa46468ee
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.
src/bin/pgbench/exprparse.y
src/bin/pgbench/t/002_pgbench_no_server.pl