forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit64e77b4
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 insertgets larger than INT32_MAX would cause an infinite loop ininitPopulateTable(), preventing pgbench to finish its initialization.Oversight ine35cc3b that has refactored the data generation logic.Author: John HsuReviewed-by: Tatsuo Ishii, Japin LiDiscussion:https://postgr.es/m/CA+-JvFvHsOafjHcuFPfkyouHNZvbOXhBNhwZxKm3WNgYz9bwzA@mail.gmail.com1 parentda44ff3 commit64e77b4
1 file changed
+1
-1
lines changedLines changed: 1 addition & 1 deletion
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
Comments
(0)