]> 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:40:24 +0000 (13:40 +0900)
committerMichael Paquier <michael@paquier.xyz>
Fri, 27 Jul 2018 04:40:24 +0000 (13:40 +0900)
commit39d51fe87dae843574fa2349128679800bfe7ccd
treea81cd2dc72b8baad0e7d27c8eca78fd58f6708b1
parent9f77ad2672f1be0c475428db7bf52b572af3c65f
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