Commit Graph

22 Commits

Author SHA1 Message Date
Ian Barwick
46c956e61a Use "primary" instead of "master" 2017-06-23 21:33:54 +09:00
Ian Barwick
66535e5417 repmgrd: initial startup 2017-06-22 17:23:05 +09:00
Ian Barwick
82c9b365ed Consolidate error/warning output code 2017-06-22 09:04:16 +09:00
Ian Barwick
d77736329a repmgrd: add command line option -L/--log-level
Mainly for ad-hoc debugging purposes without needing to change
the configuration file.
2017-06-22 00:09:18 +09:00
Ian Barwick
5ab2ac0e9a Convert configuration file parmeter "failover_mode" to an enum
We might want to add more modes in the future.
2017-06-21 09:53:41 +09:00
Ian Barwick
36b3782009 Store the replication user in repmgr.nodes
When creating recovery.conf outside of "repmgr standby clone",
there was no way of knowing if a replication user had been
explicitly provided with --replication-user, meaning the value
of "primary_conninfo" would be set to the "conninfo" field of the
node's upstream node record.

We'll add an extra column to store the replication user for each
node so it can be referenced at any time.
2017-06-14 23:27:26 +09:00
Ian Barwick
d6b36e13d8 Strip trailing \n from various log messages 2017-05-12 08:44:44 +09:00
Ian Barwick
fe7598d230 Make boolean support more like that in postgresql.conf 2017-05-04 11:34:50 +09:00
Ian Barwick
00fd8e81f8 "standby clone": basic port complete 2017-05-02 14:25:08 +09:00
Ian Barwick
bcb17dd71a More functionality for "standby clone" 2017-04-29 22:41:43 +09:00
Ian Barwick
dc347f1484 Additional "standby clone" code
We'll break up the unwieldy "do_standby_clone()" function into discrete
unit for easier maintenance.
2017-04-28 22:00:26 +09:00
Ian Barwick
2ed5393209 Suppress configuration file warnings if --terse is set 2017-04-26 10:50:43 +09:00
Ian Barwick
5041a49b66 Additional option parsing 2017-04-25 23:29:43 +09:00
Ian Barwick
226ba99804 Refactor command line option checks 2017-04-25 22:26:12 +09:00
Ian Barwick
001d887e8d Initial database functions 2017-04-21 15:12:33 +09:00
Ian Barwick
11b7dda778 Fix formatting 2017-04-21 13:28:29 +09:00
Ian Barwick
073afbce54 Improve configuration file parsing and error detection
- enable provision of various boolean values
- improve enforcement of minimum values for integers
2017-04-21 13:21:18 +09:00
Ian Barwick
0b0a0c69fc Implement config file parsing 2017-04-21 12:11:00 +09:00
Ian Barwick
f9dfcb20b4 Initial config file structure definition and initialisation 2017-04-20 16:42:56 +09:00
Ian Barwick
0fb4876256 Initial config file infrastructure
Also unify command line option structure/parsing so everything's
in the same order in the code.
2017-04-20 09:41:50 +09:00
Ian Barwick
8968cfe735 Add logging and repmgr command sanity checks 2017-04-20 00:32:04 +09:00
Ian Barwick
1631917715 Initial table definitions and coding for repmgr client utility 2017-04-19 22:41:20 +09:00