Skip to content

Commit 8962b61

Browse files
author
Neil Conway
committed
Document that the "-P" option to pg_autovacuum is insecure on many
platforms, and suggest using ~/.pgpass instead.
1 parent d4beb26 commit 8962b61

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

contrib/pg_autovacuum/README.pg_autovacuum

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ list.
3636

3737
pg_autovacuum requires that the statistics system be enabled and
3838
reporting row level stats. The overhead of the stats system has been
39-
shown to have a significant cost under certain workloads. For
40-
instance, a tight loop of queries performing "select 1" was found to
41-
run nearly 30% slower when stats were enabled. However, in practice,
39+
shown to be significant under certain workloads. For instance, a
40+
tight loop of queries performing "select 1" was found to run nearly
41+
30% slower when row-level stats were enabled. However, in practice,
4242
with more realistic workloads, the stats system overhead is usually
4343
nominal.
4444

@@ -127,8 +127,11 @@ pg_autovacuum has the following optional arguments:
127127
-U username: Username pg_autovacuum will use to connect with, if not
128128
specified the current username is used.
129129
-P password: Password pg_autovacuum will use to connect with. *WARNING*
130-
When installed as a Windows Service, this option will be stored in plain
131-
text in the registry.
130+
This option is insecure. When installed as a Windows Service, this
131+
option will be stored in plain text in the registry. When used with
132+
most Unix variants, other users will be able to see the argument to
133+
the "-P" option via ps(1). The ~/.pgpass file can be used to
134+
specify a password more securely.
132135
-H host: host name or IP to connect to.
133136
-p port: port used for connection.
134137
-h help: list of command line options.

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