Commit 3ff01b2
committed
Adjust pgbench option for debug mode.
Many other utilities use -d to specify the database to use, but
pgbench uses it to enable debug mode. This is causing some users
to accidentally enable it. This commit changes -d to accept the
database name and introduces --dbname. Debug mode can still be
enabled with --debug. This is a backward-incompatible change, but
it has been judged to be worth the trade-off, i.e., some scripts
that use pgbench will need to be updated.
Author: Greg Sabino Mullane
Reviewed-by: Tomas Vondra, Euler Taveira, Alvaro Herrera, David Christensen
Discussion: https://postgr.es/m/CAKAnmmLjAzwVtb%3DVEaeuCtnmOLpzkJ1uJ_XiQ362YdD9B72HSg%40mail.gmail.com1 parent 374c7a2 commit 3ff01b2
File tree
4 files changed
+24
-16
lines changed- doc/src/sgml/ref
- src/bin/pgbench
- t
4 files changed
+24
-16
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
162 | 162 | | |
163 | 163 | | |
164 | 164 | | |
165 | | - | |
| 165 | + | |
| 166 | + | |
166 | 167 | | |
167 | 168 | | |
168 | 169 | | |
| |||
463 | 464 | | |
464 | 465 | | |
465 | 466 | | |
466 | | - | |
467 | 467 | | |
468 | 468 | | |
469 | 469 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
933 | 933 | | |
934 | 934 | | |
935 | 935 | | |
936 | | - | |
| 936 | + | |
| 937 | + | |
937 | 938 | | |
938 | 939 | | |
939 | 940 | | |
| |||
6620 | 6621 | | |
6621 | 6622 | | |
6622 | 6623 | | |
6623 | | - | |
| 6624 | + | |
6624 | 6625 | | |
6625 | 6626 | | |
6626 | 6627 | | |
| |||
6661 | 6662 | | |
6662 | 6663 | | |
6663 | 6664 | | |
| 6665 | + | |
6664 | 6666 | | |
6665 | 6667 | | |
6666 | 6668 | | |
| |||
6732 | 6734 | | |
6733 | 6735 | | |
6734 | 6736 | | |
6735 | | - | |
| 6737 | + | |
6736 | 6738 | | |
6737 | 6739 | | |
6738 | 6740 | | |
| |||
6773 | 6775 | | |
6774 | 6776 | | |
6775 | 6777 | | |
6776 | | - | |
| 6778 | + | |
6777 | 6779 | | |
6778 | 6780 | | |
6779 | 6781 | | |
| |||
6998 | 7000 | | |
6999 | 7001 | | |
7000 | 7002 | | |
| 7003 | + | |
| 7004 | + | |
| 7005 | + | |
7001 | 7006 | | |
7002 | 7007 | | |
7003 | 7008 | | |
| |||
7048 | 7053 | | |
7049 | 7054 | | |
7050 | 7055 | | |
7051 | | - | |
7052 | | - | |
7053 | | - | |
| 7056 | + | |
7054 | 7057 | | |
7055 | | - | |
7056 | | - | |
7057 | | - | |
7058 | | - | |
| 7058 | + | |
| 7059 | + | |
7059 | 7060 | | |
7060 | | - | |
| 7061 | + | |
| 7062 | + | |
| 7063 | + | |
| 7064 | + | |
| 7065 | + | |
| 7066 | + | |
| 7067 | + | |
| 7068 | + | |
7061 | 7069 | | |
7062 | 7070 | | |
7063 | 7071 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1352 | 1352 | | |
1353 | 1353 | | |
1354 | 1354 | | |
1355 | | - | |
| 1355 | + | |
1356 | 1356 | | |
1357 | 1357 | | |
1358 | 1358 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | | - | |
| 69 | + | |
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
| |||
0 commit comments