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

Commitef26623

Browse files
committed
Fix pgbench's failure to honor the documented long-form option "--builtin".
Not only did it not accept --builtin as a synonym for -b, but what it didaccept as a synonym was --tpc-b (huh?), which it got even further wrongby marking as no_argument, so that if you did try that you got a coredump. I suppose this is leftover from some early design for the newswitches added by commit8bea3d2, but it's still pretty sloppy work.Per bug #14580 from Stepan Pesternikov. Back-patch to 9.6 where theerror was introduced.Report:https://postgr.es/m/20170307123347.25054.73207@wrigleys.postgresql.org
1 parentaa56671 commitef26623

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
@@ -3610,7 +3610,7 @@ main(int argc, char **argv)
36103610
{
36113611
staticstructoptionlong_options[]= {
36123612
/* systematic long/short named options */
3613-
{"tpc-b",no_argument,NULL,'b'},
3613+
{"builtin",required_argument,NULL,'b'},
36143614
{"client",required_argument,NULL,'c'},
36153615
{"connect",no_argument,NULL,'C'},
36163616
{"debug",no_argument,NULL,'d'},

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp