- Notifications
You must be signed in to change notification settings - Fork5
Commit9a65fb3
committed
Allow total number of transactions in pgbench to exceed INT_MAX.
Change the total-transactions counters from int32 to int64 to accommodatecases where we do more than 2^31 transactions during a run. This patchdoes not change the INT_MAX limit on explicit "-t" parameters, but itdoes allow the product of the -t and -c parameters to exceed INT_MAX, orallow a -T limit that is large enough that more than 2^31 transactionscan be completed. While pgbench did not actually fail in such cases,it did print an incorrect total-transactions count, and some of thederived numbers such as TPS would have been wrong as well.Tomas Vondra1 parent9fa9353 commit9a65fb3
1 file changed
+6
-6
lines changedLines changed: 6 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
239 | 239 |
| |
240 | 240 |
| |
241 | 241 |
| |
242 |
| - | |
| 242 | + | |
243 | 243 |
| |
244 | 244 |
| |
245 | 245 |
| |
| |||
2180 | 2180 |
| |
2181 | 2181 |
| |
2182 | 2182 |
| |
2183 |
| - | |
| 2183 | + | |
2184 | 2184 |
| |
2185 | 2185 |
| |
2186 | 2186 |
| |
| |||
2213 | 2213 |
| |
2214 | 2214 |
| |
2215 | 2215 |
| |
2216 |
| - | |
2217 |
| - | |
| 2216 | + | |
| 2217 | + | |
2218 | 2218 |
| |
2219 | 2219 |
| |
2220 | 2220 |
| |
2221 | 2221 |
| |
2222 |
| - | |
| 2222 | + | |
2223 | 2223 |
| |
2224 | 2224 |
| |
2225 | 2225 |
| |
| |||
2359 | 2359 |
| |
2360 | 2360 |
| |
2361 | 2361 |
| |
2362 |
| - | |
| 2362 | + | |
2363 | 2363 |
| |
2364 | 2364 |
| |
2365 | 2365 |
| |
|
0 commit comments
Comments
(0)