Ian Barwick
4cb7f301ad
Correct check for wal_level in 9.3
2016-05-16 12:23:33 +09:00
Ian Barwick
87d8de4441
Remove unneeded column
2016-05-16 12:23:25 +09:00
Ian Barwick
6db742f81e
repmgrd: better handling of missing upstream_node_id
...
Ensure we default to master node.
2016-05-16 12:23:20 +09:00
Ian Barwick
c79933685c
Add missing newlines in log messages
2016-05-16 12:23:15 +09:00
Ian Barwick
04ba672b9f
repmgrd: avoid additional connection to local instance in do_master_failover()
2016-05-16 12:23:09 +09:00
Ian Barwick
4f4111063a
Suppress gnu_printf format warning
2016-05-16 12:23:03 +09:00
Ian Barwick
3a3a536e6d
repmgrd: rename variable for clarity
2016-05-16 12:22:58 +09:00
Ian Barwick
6f7206a5a1
Don't follow the promotion candidate standby if the primary reappears
2016-05-16 12:22:49 +09:00
Ian Barwick
f9fd1dd227
Don't terminate a standby's repmgrd if self-promotion fails due to master reappearing
...
Per GitHub #173
2016-05-16 12:22:40 +09:00
Martin
8140ba9c27
The commit fixes problems not taking in account while working on the
...
issue with rsync returning non-zero status on vanishing files on commit
83e5f98171 .
Alvaro Herrera gave me some tips which pointed me in the correct
direction.
This was reported by sungjae lee <sj860908@gmail.com >
2016-05-16 12:22:27 +09:00
Ian Barwick
32dba444e1
Enable long option --pgdata as alias for -D/--data-dir
...
pg_ctl provides -D/--pgdata; we want to be as close to the core utilities
as possible.
2016-05-16 12:22:17 +09:00
Ian Barwick
8212ff8d8a
Bump version
...
3.1.3
2016-05-12 07:54:42 +09:00
Martin
1ccd0edad2
We were not checking the return code after rsyncing the tablespaces.
...
This fixes #168
2016-04-17 17:59:50 -03:00
Martin
59b31dd1ca
Ignore rsync error code for vanished files.
...
It's very common to come over vanish files during a backup or rsync
o the data directory (dropped index, temp tables, etc.)
This fixes #149
2016-04-17 17:59:50 -03:00
Ian Barwick
300b9f0cc2
Fix pre-9.6 wal_level check
2016-04-12 16:18:29 +09:00
Ian Barwick
0efee4cf65
Fix hint message formatting
2016-04-12 16:07:38 +09:00
Ian Barwick
0cb2584886
Bump version
...
3.1.2
2016-04-12 15:56:39 +09:00
Ian Barwick
b88d27248c
Use "immediately_reserve" parameter in pg_create_physical_replication_slot (9.6)
2016-04-12 15:56:06 +09:00
Ian Barwick
683c54325e
Enable repmgr to be compiled with PostgreSQL 9.6
2016-04-12 15:55:51 +09:00
Ian Barwick
70d398cd47
Update HISTORY
2016-04-12 15:53:40 +09:00
Ian Barwick
7b7d80e5f2
Update HISTORY
2016-04-12 15:53:33 +09:00
Ian Barwick
96b0e26084
Remove duplicate inclusion from header file
2016-04-06 14:16:00 +09:00
Ian Barwick
91c498f6f1
Update HISTORY
2016-04-06 11:57:46 +09:00
Ian Barwick
d48093e732
Preserver failover slots when cloning a standby, if enabled
2016-04-06 11:20:27 +09:00
Ian Barwick
3f0d1754a4
MAXFILENAME -> MAXPGPATH
2016-04-06 11:20:27 +09:00
Craig Ringer
f27979bbe1
WIP support for preserving failover slots
2016-04-06 11:20:27 +09:00
Ian Barwick
e9445a5d5e
Make self-referencing foreign key on repl_nodes table deferrable
2016-04-01 15:20:36 +09:00
Ian Barwick
9a2717b5e3
Improve debugging output for node resyncing
...
We'll need this for testing.
2016-04-01 15:20:32 +09:00
Ian Barwick
dd6ea1cd77
Rename copy_configuration () to witness_copy_node_records()
...
As it's witness-specific. Per suggestion from Martín.
2016-04-01 11:30:08 +09:00
Ian Barwick
de5908c122
Make witness server node update an atomic operation
...
If the connection to the primary is lost, roll back to the previously
known state.
TRUNCATE is of course not MVCC-friendly, but that shouldn't matter here
as only one process should ever be looking at this table.
2016-04-01 11:15:27 +09:00
Ian Barwick
4b5c84921c
Replace MAXFILENAME with MAXPGPATH
2016-03-31 20:11:10 +09:00
Ian Barwick
aaa8d70cef
Comment out configuration items in sample config file
...
The configured values are either the defaults, or examples which
may not work in a real environment. If this file is being used as
a template, the onus is on the user to uncomment and check all
desired parameters.
2016-03-31 15:14:30 +09:00
Gianni Ciolli
ca31b846e7
Rewording comment for clarity.
2016-03-31 15:01:29 +09:00
Ian Barwick
a27cecb559
Update HISTORY
2016-03-31 14:59:03 +09:00
Ian Barwick
cf0cdfa6a1
Bump version
...
3.1.2rc1
2016-03-31 14:56:49 +09:00
Ian Barwick
31489d92c0
Check directory entity filetype in a more portable way
2016-03-30 20:21:41 +09:00
Ian Barwick
b7fd13aed2
Fix pg_ctl path generation in do_standby_switchover()
2016-03-30 16:46:57 +09:00
Ian Barwick
3c4bf27aa7
Add headers as dependencies in Makefile
2016-03-30 15:06:15 +09:00
Ian Barwick
0ebd9c15d9
Regularly sync witness server repl_nodes table.
...
Although the witness server will resync the repl_nodes table following
a failover, other operations (e.g. removing or cloning a standby)
were previously not reflected in the witness server's copy of this
table.
As a short-term workaround, automatically resync the table at regular
intervals (defined by the configuration file parameter
"witness_repl_nodes_sync_interval_secs", default 30 seconds).
2016-03-30 15:06:12 +09:00
Nikolay Shaplov
f9dba283d4
Better use /24 network mask in this example
2016-03-30 15:05:29 +09:00
Ian Barwick
205f1cebbb
It's unlikely this situation will occur on a witness server
...
Which is why the error message is for master/standby only.
2016-03-30 15:05:26 +09:00
Ian Barwick
4d97c1ebf7
Add hint about registering the server after cloning it.
...
This step is easy to forget.
2016-03-30 15:05:20 +09:00
Ian Barwick
12c395e91f
README: Add note about 'repmgr_funcs'
2016-03-30 15:05:17 +09:00
Ian Barwick
bd1e4f71d6
repmgrd: fix error message
2016-03-30 15:05:10 +09:00
Ian Barwick
cb49071ea4
Fix code comment
2016-03-30 15:05:06 +09:00
Ian Barwick
5ad674edff
Bump version
...
3.1.1
v3.1.1
2016-02-23 15:56:24 +09:00
Ian Barwick
ac09bad89c
Minor fixes to README.md
2016-02-23 14:37:59 +09:00
Ian Barwick
009d92fec8
Ensure witness node is registered before the repl_nodes table is copied
...
This fixes a bug introduced into the previous commit, where the
witness node was registered last to prevent a spurious node record
being created even if witness server creation failed.
2016-02-23 14:37:54 +09:00
Martin
b3d8a68a1d
Fix a few paragraphs from the README.md.
2016-02-23 14:37:48 +09:00
Ian Barwick
05b47cb2a8
Prevent repmgr/repmgrd running as root
2016-02-23 14:37:44 +09:00