Fix pgbench's parsing of double values to notice trailing garbage.

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 6b8b4e4d8320d8c9daf9410175c40a09e58c4868
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2016-05-06T15:08:48Z
Releases: 9.6.0
Fix pgbench's parsing of double values to notice trailing garbage.

Noted by Fabien Coelho, though this isn't exactly his proposed patch.
(The technique used here is borrowed from the zic sources.)

Files

PathChange+/−
src/bin/pgbench/pgbench.c modified +2 −1