Skip to content

Commit c87ddba

Browse files
committed
Rename vacuum_cost_limit switch from -N to -l to avoid conflict with
existing Windows-only switch.
1 parent 1c1f2f5 commit c87ddba

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
-C vacuum_cost_page_hit
142142
-m vacuum_cost_page_miss
143143
-n vacuum_cost_page_dirty
144-
-N vacuum_cost_limit
144+
-l vacuum_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/17 16:54:15 tgl Exp $
7+
* $PostgreSQL: pgsql/contrib/pg_autovacuum/pg_autovacuum.c,v 1.25 2004/11/17 21: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
#ifndef WIN32
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
#ifndef WIN32
@@ -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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy