pgsql: Fix integer-overflow edge case detection in interval_mul and pgb

2019-11-07 Thread Tom Lane
Fix integer-overflow edge case detection in interval_mul and pgbench. This patch adopts the overflow check logic introduced by commit cbdb8b4c0 into two more places. interval_mul() failed to notice if it computed a new microseconds value that was one more than INT64_MAX, and pgbench's double-to-i

pgsql: Fix integer-overflow edge case detection in interval_mul and pgb

2019-11-07 Thread Tom Lane
Fix integer-overflow edge case detection in interval_mul and pgbench. This patch adopts the overflow check logic introduced by commit cbdb8b4c0 into two more places. interval_mul() failed to notice if it computed a new microseconds value that was one more than INT64_MAX, and pgbench's double-to-i

pgsql: Fix integer-overflow edge case detection in interval_mul and pgb

2019-11-07 Thread Tom Lane
Fix integer-overflow edge case detection in interval_mul and pgbench. This patch adopts the overflow check logic introduced by commit cbdb8b4c0 into two more places. interval_mul() failed to notice if it computed a new microseconds value that was one more than INT64_MAX, and pgbench's double-to-i

pgsql: Fix integer-overflow edge case detection in interval_mul and pgb

2019-11-07 Thread Tom Lane
Fix integer-overflow edge case detection in interval_mul and pgbench. This patch adopts the overflow check logic introduced by commit cbdb8b4c0 into two more places. interval_mul() failed to notice if it computed a new microseconds value that was one more than INT64_MAX, and pgbench's double-to-i

pgsql: Fix integer-overflow edge case detection in interval_mul and pgb

2019-11-07 Thread Tom Lane
Fix integer-overflow edge case detection in interval_mul and pgbench. This patch adopts the overflow check logic introduced by commit cbdb8b4c0 into two more places. interval_mul() failed to notice if it computed a new microseconds value that was one more than INT64_MAX, and pgbench's double-to-i

pgsql: Fix integer-overflow edge case detection in interval_mul and pgb

2019-11-07 Thread Tom Lane
Fix integer-overflow edge case detection in interval_mul and pgbench. This patch adopts the overflow check logic introduced by commit cbdb8b4c0 into two more places. interval_mul() failed to notice if it computed a new microseconds value that was one more than INT64_MAX, and pgbench's double-to-i

pgsql: Fix integer-overflow edge case detection in interval_mul and pgb

2019-11-07 Thread Tom Lane
Fix integer-overflow edge case detection in interval_mul and pgbench. This patch adopts the overflow check logic introduced by commit cbdb8b4c0 into two more places. interval_mul() failed to notice if it computed a new microseconds value that was one more than INT64_MAX, and pgbench's double-to-i