]> granicus.if.org Git - postgresql/commit
pgbench: Install guard against overflow when dividing by -1.
authorRobert Haas <rhaas@postgresql.org>
Wed, 3 Feb 2016 14:15:29 +0000 (09:15 -0500)
committerRobert Haas <rhaas@postgresql.org>
Wed, 3 Feb 2016 14:15:29 +0000 (09:15 -0500)
commitc33d1a8d5266d345bf777b1a9256cb7155d7e67f
treefff53330c9c0533b0df6cd23edbeec4b4c102efe
parentaa223a037be2935dd6e335d94550dc3f53262479
pgbench: Install guard against overflow when dividing by -1.

Commit 64f5edca2401f6c2f23564da9dd52e92d08b3a20 fixed the same hazard
on master; this is a backport, but the modulo operator does not exist
in older releases.

Michael Paquier
contrib/pgbench/pgbench.c