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

Commitc87ddba

Browse files
committed
Rename vacuum_cost_limit switch from -N to -l to avoid conflict with
existing Windows-only switch.
1 parent1c1f2f5 commitc87ddba

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

‎contrib/pg_autovacuum/README.pg_autovacuum

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ will be used.
141141
-Cvacuum_cost_page_hit
142142
-mvacuum_cost_page_miss
143143
-nvacuum_cost_page_dirty
144-
-Nvacuum_cost_limit
144+
-lvacuum_cost_limit
145145

146146

147147
Numerous arguments have default values defined in pg_autovacuum.h. At

‎contrib/pg_autovacuum/pg_autovacuum.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* Revisions by Christopher B. Browne, Liberty RMS
55
* Win32 Service code added by Dave Page
66
*
7-
* $PostgreSQL: pgsql/contrib/pg_autovacuum/pg_autovacuum.c,v 1.24 2004/11/1716:54:15 tgl Exp $
7+
* $PostgreSQL: pgsql/contrib/pg_autovacuum/pg_autovacuum.c,v 1.25 2004/11/1721:30:36 tgl Exp $
88
*/
99

1010
#include"postgres_fe.h"
@@ -1098,9 +1098,9 @@ get_cmd_args(int argc, char *argv[])
10981098
* values etc
10991099
*/
11001100
#ifndefWIN32
1101-
while ((c=getopt(argc,argv,"s:S:v:V:a:A:d:U:P:H:L:p:hD:c:C:m:n:N:"))!=-1)
1101+
while ((c=getopt(argc,argv,"s:S:v:V:a:A:d:U:P:H:L:p:hD:c:C:m:n:l:"))!=-1)
11021102
#else
1103-
while ((c=getopt(argc,argv,"s:S:v:V:a:A:d:U:P:H:L:p:hIRN:W:c:C:m:n:N:"))!=-1)
1103+
while ((c=getopt(argc,argv,"s:S:v:V:a:A:d:U:P:H:L:p:hIRN:W:c:C:m:n:l:"))!=-1)
11041104
#endif
11051105
{
11061106
switch (c)
@@ -1135,7 +1135,7 @@ get_cmd_args(int argc, char *argv[])
11351135
case'n':
11361136
args->av_vacuum_cost_page_dirty=atoi(optarg);
11371137
break;
1138-
case'N':
1138+
case'l':
11391139
args->av_vacuum_cost_limit=atoi(optarg);
11401140
break;
11411141
#ifndefWIN32
@@ -1240,7 +1240,7 @@ usage(void)
12401240
fprintf(stderr," [-C] vacuum_cost_page_hit (default=none)\n");
12411241
fprintf(stderr," [-m] vacuum_cost_page_miss (default=none)\n");
12421242
fprintf(stderr," [-n] vacuum_cost_page_dirty (default=none)\n");
1243-
fprintf(stderr," [-N] vacuum_cost_limit (default=none)\n");
1243+
fprintf(stderr," [-l] vacuum_cost_limit (default=none)\n");
12441244

12451245
fprintf(stderr," [-U] username (libpq default)\n");
12461246
fprintf(stderr," [-P] password (libpq default)\n");

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp