Commit Graph

898 Commits

Author SHA1 Message Date
Ian Barwick
db69c4b310 "standby clone": exit early in pg_basebackup mode if data directory is not empty 2017-05-02 14:47:23 +09:00
Ian Barwick
00fd8e81f8 "standby clone": basic port complete 2017-05-02 14:25:08 +09:00
Ian Barwick
0a553c309b Update test config files 2017-05-02 10:17:13 +09:00
Ian Barwick
a960ed9d49 "standby clone": perform clone operations 2017-05-02 09:58:17 +09:00
Ian Barwick
8f74d1b946 "standby clone": create replication slot 2017-05-02 00:38:36 +09:00
Ian Barwick
84a2bf4375 "standby clone": initialise non-Barman clone process 2017-05-02 00:19:44 +09:00
Ian Barwick
611e3b5e29 Further "standby clone" code 2017-05-01 23:34:01 +09:00
Ian Barwick
206a9fd333 More work on "standby clone" 2017-05-01 22:22:31 +09:00
Ian Barwick
675dc5adb3 repmgr cluster event: order output by event_timestamp
Ordering by the derived "timestamp" column doesn't have sufficient
granularity.
2017-05-01 08:37:41 +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
99e7bb0ea3 Initial code for standby clone 2017-04-27 09:22:09 +09:00
Ian Barwick
bcf55b4f72 Split "action" functions to individual files
repmgr3's repmgr.c file was not far off 10,000 lines - this will make
it easier to manage individual parts of the code.
2017-04-26 22:58:21 +09:00
Ian Barwick
230eab28a9 Update .gitignore 2017-04-26 22:49:19 +09:00
Ian Barwick
a3a4c441b6 master register: warn if "upstream_node_id" set 2017-04-26 22:18:40 +09:00
Ian Barwick
16a47f5693 master register: add event details if relevant 2017-04-26 22:09:49 +09:00
Ian Barwick
cd0509194d Validate --node-id/--node-name, if provided and acceptable
Also update --help output.
2017-04-26 21:18:28 +09:00
Ian Barwick
2ed5393209 Suppress configuration file warnings if --terse is set 2017-04-26 10:50:43 +09:00
Ian Barwick
1b785d9a20 Add simple output for CLUSTER EVENT 2017-04-26 10:31:56 +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
c8e27956e6 Fix queries and permissions for the repmgr extension 2017-04-25 10:56:55 +09:00
Ian Barwick
451cd16788 Initial code for "standby clone" 2017-04-25 09:18:14 +09:00
Ian Barwick
885bc122df Improve logging output 2017-04-25 08:22:58 +09:00
Ian Barwick
ef5c6b37a4 Add event logging 2017-04-24 23:20:23 +09:00
Ian Barwick
8a04879953 Parameterize record creation/update queries
Also merge the main functionality into a common function to avoid
duplication.
2017-04-24 22:21:38 +09:00
Ian Barwick
ca6b493763 create and update node records 2017-04-24 10:24:44 +09:00
Ian Barwick
18c2cfda0b Fix tabulation 2017-04-22 09:06:42 +09:00
Ian Barwick
dcb0d71591 Add missing function definition 2017-04-22 08:46:35 +09:00
Ian Barwick
5e68d41d58 Add config file for testing 2017-04-22 08:25:41 +09:00
Ian Barwick
a16bbbf107 master register: check for existing master presence/active record 2017-04-21 19:47:31 +09:00
Ian Barwick
77870d3887 master register: create repmgr extension 2017-04-21 18:38:28 +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
7d0e061088 Various syntax and include fixes 2017-04-20 17:04:54 +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
76e8c4624e repmgr: initial runtime option parsing and root execution detection 2017-04-19 23:16:36 +09:00
Ian Barwick
1631917715 Initial table definitions and coding for repmgr client utility 2017-04-19 22:41:20 +09:00
Ian Barwick
2704ab0536 Improve PostgreSQL version detection
Need to consider different numbering system from PostgreSQL 10.
2017-04-19 10:12:52 +09:00
Ian Barwick
e306eb213b Tweak extension configuration 2017-04-19 10:12:26 +09:00
Ian Barwick
856244fdd6 Suffix binaries with "4" ("repmgr4" etc)
So we can use the existing repmgr in parallel for development
2017-04-18 12:25:25 +09:00
Ian Barwick
e6237cc81a Makefiles and placeholder code 2017-04-18 11:26:51 +09:00
Ian Barwick
4a830b14b9 Initial configure script 2017-04-18 09:39:01 +09:00
Ian Barwick
1c99251ad1 Initial commit 2017-04-18 07:55:00 +09:00