Ian Barwick
04fe820aff
Note where compatibility check for replication slots is carried out
...
Scanning the source code gives the impression there's no check.
2015-03-05 10:12:36 +09:00
Ian Barwick
0f8759d316
Consolidate duplicated code
2015-03-04 17:27:51 +09:00
Ian Barwick
2b6415b339
Update README.md
2015-03-04 15:54:14 +09:00
Ian Barwick
defb1e819b
Add some annotations
2015-03-04 10:36:19 +09:00
Ian Barwick
7ae4434f6e
Add new quickstart guide with annotated examples only.
...
The other content will become the new README.
2015-03-03 19:03:52 +09:00
Ian Barwick
e3b734f177
Check for max_replication_slots > 0
2015-03-03 18:51:58 +09:00
Ian Barwick
187a6b6d23
Fix slot name
2015-03-03 18:50:48 +09:00
Ian Barwick
238fc589a1
Improve logging of configuration file operations
2015-03-03 18:14:26 +09:00
Ian Barwick
63b9254be4
Change log notice to log debug
2015-03-03 17:49:40 +09:00
Ian Barwick
44196de2f4
Add initial FAQ file
2015-03-03 16:21:57 +09:00
Ian Barwick
46888de77f
Improve configuration file handling
...
Put logic in config.c so it can be shared between repmgr and repmgrd.
2015-03-03 15:39:56 +09:00
Ian Barwick
6b1f55ff1b
Improve command line error handling
...
Per e.g. this complaint:
https://groups.google.com/d/msg/repmgr/a-SMIQFGDBs/rgRH3p4ZPgYJ
Before:
$ repmgr -f /etc/postgres/repmgr.conf cluster status
repmgr: Replicator manager
Try "repmgr --help" for more information.
after:
$ repmgr -f /etc/postgres/repmgr.conf cluster status
repmgr: Replication manager
[ERROR] Unknown server command 'status'
Try "repmgr --help" for more information.
2015-03-03 11:13:37 +09:00
Ian Barwick
3d3f082617
Ensure witness server updates its node records following a failover
...
This involves mainly abstracting the functions which copy
and create records from repmgr.c to dbutils.c, as they need
to be shared between repmgr and repmgrd.
Per issue noted here:
https://groups.google.com/forum/#!topic/repmgr/v5nu1Xwf6X0
2015-03-03 08:57:20 +09:00
Ian Barwick
db5db06244
Retire old README
...
Keep it around for reference for now.
2015-03-03 07:43:02 +09:00
Ian Barwick
dd7193715c
Gracefully fail when node has not been registered
2015-03-02 10:38:44 +09:00
Ian Barwick
f8f81f4bf1
Update HISTORY file with items included in 2.0.2
...
Also standardize on spaces instead of tabs
2015-03-02 08:04:18 +09:00
Ian Barwick
27a4780cc3
Update HISTORY
2015-03-02 07:58:06 +09:00
Ian Barwick
b79bce5821
Support tablespace mapping in --rsync-only mode
...
This makes it practical to take a back with rsync where tablespaces
require remapping. It also makes tablespace remapping possible for
9.3, where pg_basebackup does not support this option.
2015-03-01 14:10:17 +09:00
Ian Barwick
a69176fc1b
tablespace_dirs -> tablespace_mapping
...
For consistency with the parameter name.
2015-02-28 11:03:03 +09:00
Ian Barwick
65dcce55e8
Remove redundant comment
...
Issue already addressed.
2015-02-28 10:54:42 +09:00
Ian Barwick
ff30df3d96
In rsync mode, move pg_control last
...
Emulate the backup protocol as much as possible.
2015-02-27 19:27:46 +09:00
Ian Barwick
74e4b6aa3c
Refactor rsync file/directory exclusion
...
Better simulate what goes on in 'src/backend/replication/basebackup.c';
avoid copying some files/directories introduced in 9.4.
2015-02-27 15:59:47 +09:00
Ian Barwick
22dd164cbb
Clarify intent
2015-02-27 13:29:21 +09:00
Ian Barwick
63c416bb76
Set synchronous_commit to off for current session
...
Forward-ported from 2.x; need to verify it makes sense.
2015-02-27 11:40:57 +09:00
Ian Barwick
e2c2f97307
Clarify repmgr.conf usage
2015-02-27 10:02:42 +09:00
Ian Barwick
41e9a370af
Clarify repmgr.conf usage
2015-02-27 10:01:38 +09:00
Ian Barwick
2eb242553a
Fix log message
2015-02-27 09:57:18 +09:00
Ian Barwick
e3ecd3cdc5
Move cluster size check to an earlier point
...
Seems to make more sense that way.
2015-02-25 14:28:42 +09:00
Ian Barwick
32611f5f04
Add --rsync-only option
...
Sometimes it's desirable to re-sync a "stale" data directory
on a standby, rather than start from scratch with pg_basebackup().
This re-adds the rsync code from the 2.x series, with some
modifications.
TODO: tablespace support.
2015-02-25 14:17:09 +09:00
Ian Barwick
ba254d2f06
Clarify comment
2015-02-24 16:00:28 +09:00
Magnus Hagander
69f842bbc2
Fix markup
...
This was broken in commit 8faf41dd94 ,
most likely because of a runaway search/replace.
2015-02-24 09:43:54 +09:00
Magnus Hagander
99e1c33668
Fix markup
...
This was broken in commit 8faf41dd94 ,
most likely because of a runaway search/replace.
2015-02-24 08:47:34 +09:00
Ian Barwick
6791bd9ad3
Clean up rempgr debugging output
2015-02-23 15:17:06 +09:00
Ian Barwick
3e6659dda0
Modify log message for consistency and testing
...
Pre-3.0: 'repmgr standby clone complete'
3.0: 'repmgr standby clone (using pg_basebackup) complete' or
'repmgr standby clone (using rsync) complete'
2015-02-20 12:29:15 +09:00
Ian Barwick
ce498e4d1e
Update devel version string
2015-02-20 10:10:17 +09:00
Ian Barwick
0762b28679
Update HISTORY file with items included in 2.0.2
...
Also standardize on spaces instead of tabs
2015-02-17 16:12:37 +09:00
Ian Barwick
5dff3017c8
Update HISTORY file
2015-02-12 17:22:34 +09:00
Ian Barwick
b453c6a533
Fix master port check
...
Check introduced in dc0dfe9b56
was comparing the provided database name instead of the port.
2015-02-12 14:44:05 +09:00
Ian Barwick
09c7ba95ac
Update HISTORY notes
2015-02-12 14:42:23 +09:00
Ian Barwick
e213f3b99d
Fix master port check
...
Check introduced in dc0dfe9b56
was comparing the provided database name instead of the port.
2015-02-12 14:39:05 +09:00
Jaime Casanova
eabb3cb1ab
Add "--checksum" in rsync when using "--force"
...
If the user don't put that option in rsync_options using of "--force"
could be unsafe.
While the probability of failures because of this are low they aren't
zero.
2015-02-11 10:38:35 +09:00
Jaime Casanova
e886e72f14
Add "--checksum" in rsync when using "--force"
...
If the user don't put that option in rsync_options using of "--force"
could be unsafe.
While the probability of failures because of this are low they aren't
zero.
2015-02-10 20:15:40 -05:00
Ian Barwick
1803a16c7e
Detect changes to configuration file
...
This will prevent unnecessary reconnects to the upstream and
updates of the node record on the primary.
2015-02-10 12:35:19 +09:00
Ian Barwick
4f36b2c085
Probably needed.
2015-02-10 11:07:18 +09:00
Ian Barwick
19aba38327
Handle DB error when updating upstream node
2015-02-10 10:32:20 +09:00
Ian Barwick
2d82ade170
Clarify error message
2015-02-10 10:21:17 +09:00
Ian Barwick
21730899da
Clarify error message.
...
Avoid implying there's a configuration file if none was provided.
2015-02-10 10:08:49 +09:00
Ian Barwick
94bc5bdf80
Remove unneeded function
2015-02-09 18:31:18 +09:00
Ian Barwick
1369fe5c79
Rename 'test_mode' to 'target_directory_provided'
...
Which describes its meaning more accurately.
Also update some comments.
2015-02-09 16:32:21 +09:00
Ian Barwick
e71dd4945e
Remove duplicated error message
2015-02-09 13:42:51 +09:00