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

Commit27f1366

Browse files
committed
pgbench: Restore compatibility of --partitions=0
A value of 0 is allowed for this option since its creation, that wouldmap with the default of having no partitions for pgbench_accounts, but6f164e6 broke that by enforcing an error. This commit restores theoriginal behavior.Author: Amit LangoteDiscussion:https://postgr.es/m/CA+HiwqGAGobiiHR8nH382HJxqm1mzZs8=3oKPXnXivWoFSZmNA@mail.gmail.com
1 parentbbf7c2d commit27f1366

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
@@ -6865,7 +6865,7 @@ main(int argc, char **argv)
68656865
break;
68666866
case11:/* partitions */
68676867
initialization_option_set= true;
6868-
if (!option_parse_int(optarg,"--partitions",1,INT_MAX,
6868+
if (!option_parse_int(optarg,"--partitions",0,INT_MAX,
68696869
&partitions))
68706870
exit(1);
68716871
break;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp