Commit 64e77b4
committed
pgbench: Fix overflow in table populating when rows >= 2^31-1
Using a scale factor large enough so as the number of rows to insert
gets larger than INT32_MAX would cause an infinite loop in
initPopulateTable(), preventing pgbench to finish its initialization.
Oversight in e35cc3b that has refactored the data generation logic.
Author: John Hsu
Reviewed-by: Tatsuo Ishii, Japin Li
Discussion: https://postgr.es/m/CA+-JvFvHsOafjHcuFPfkyouHNZvbOXhBNhwZxKm3WNgYz9bwzA@mail.gmail.com1 parent da44ff3 commit 64e77b4
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4908 | 4908 | | |
4909 | 4909 | | |
4910 | 4910 | | |
4911 | | - | |
| 4911 | + | |
4912 | 4912 | | |
4913 | 4913 | | |
4914 | 4914 | | |
| |||
0 commit comments