doc: add note about alternative passfile locations

This commit is contained in:
Ian Barwick
2020-03-18 17:08:08 +09:00
parent 192f8ff3c2
commit 116572c86e

View File

@@ -129,6 +129,18 @@ node3:5432:repmgr:repmgr:foo
node3:5432:replication:repluser:foo</programlisting>
</para>
<note>
<para>
It's possible to specify an alternative location for the <filename>~/.pgpass</filename> file, either via
the environment variable <envar>PGPASSFILE</envar>, or (from PostgreSQL 9.6) using the
<varname>passfile</varname> parameter in connection strings.
</para>
<para>
If using the <varname>passfile</varname> parameter, it's essential to ensure the file is in the same
location on all nodes, as when connecting to a remote node, the file referenced is the one on the
local node.
</para>
</note>
</sect2>