repmgr: update README

This commit is contained in:
Ian Barwick
2016-09-27 10:27:27 +09:00
parent 65c2be3441
commit 52328b8f33

View File

@@ -676,19 +676,27 @@ which enables any valid `rsync` options to be passed to that command, e.g.:
### Controlling `primary_conninfo` in `recovery.conf` ### Controlling `primary_conninfo` in `recovery.conf`
`repmgr` will create the `primary_conninfo` setting in `recovery.conf` based The `primary_conninfo` setting in `recovery.conf` generated by `repmgr`
on the connection parameters provided to `repmgr standby clone` and PostgreSQL's is generated from the following sources, in order of highest to lowest priority:
standard connection defaults, including any environment variables set on the
local node. - the upstream node's `conninfo` setting (as defined in the `repl_nodes` table)
- the connection parameters provided to `repmgr standby clone`
- PostgreSQL's standard connection defaults, including any environment variables
set on the local node.
To include specific connection parameters other than the standard host, port, To include specific connection parameters other than the standard host, port,
username and database values (e.g. `sslmode`), include these in a `conninfo`-style username and database values (e.g. `sslmode`), include these in a `conninfo`-style
tring passed to `repmgr` with `-d/--dbname` (see above for details), and/or set string passed to `repmgr` with `-d/--dbname` (see above for details), and/or set
appropriate environment variables. appropriate environment variables.
Note that PostgreSQL will always set explicit defaults for `sslmode` and Note that PostgreSQL will always set explicit defaults for `sslmode` and
`sslcompression`. `sslcompression`.
If `application_name` is set in the standby's `conninfo` parameter in
`repmgr.conf`, this value will be appended to `primary_conninfo`, otherwise
`repmgr` will set `application_name` to the same value as the `node_name`
parameter.
Setting up cascading replication with repmgr Setting up cascading replication with repmgr
-------------------------------------------- --------------------------------------------