Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit64e77b4

Browse files
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.com
1 parentda44ff3 commit64e77b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/bin/pgbench/pgbench.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4908,7 +4908,7 @@ initPopulateTable(PGconn *con, const char *table, int64 base,
49084908
initRowMethodinit_row)
49094909
{
49104910
intn;
4911-
intk;
4911+
int64k;
49124912
intchars=0;
49134913
PGresult*res;
49144914
PQExpBufferDatasql;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp