Ian Barwick
5b4f832f3b
Only allow --rsync-only option in combination with STANDBY CLONE
2015-03-20 15:16:55 +09:00
Ian Barwick
66844d057a
Rename 'need_a_node' to 'config_file_required'
2015-03-20 14:56:02 +09:00
Ian Barwick
f096cca84f
Fix parameter checking for STANDBY CLONE
...
Previous check for the master host was ineffective. We'd be better off explicitly
requiring at least hostname, database and usernames for the master rather
than relying on whatever defaults were in place when STANDBY CLONE is
run, especially as dbname and username are used in recovery.conf.
2015-03-20 14:47:04 +09:00
Ian Barwick
0fbb83262f
Rename t_configuration_options member 'pgctl_options' to 'pg_ctl_options'
...
Change is to make it match the actual configuration item.
2015-03-20 11:02:32 +09:00
Ian Barwick
a0a3ef58b0
Remove item "Timeline increases when promoting a standby"
...
Covered by `pg_ctl promote`.
2015-03-20 10:42:07 +09:00
Ian Barwick
b007fc8b39
3.0rc4
2015-03-19 23:28:40 +09:00
Ian Barwick
ae19c9bd5d
Only execute pg_stop_backup() if pg_start_backup() was previously executed
...
It's not a problem per-se but produces some unnecessary and possibly
confusing errors.
2015-03-19 23:19:34 +09:00
Ian Barwick
1b4a8917ca
Transfer hint in error message to its own log notice
2015-03-19 23:12:39 +09:00
Ian Barwick
ce66a7c2d2
We shouldn't terminate with an error if no event record could be created
...
Event records are advisory and non-critical; there may be paths
where we're not able to connect to a valid master and hence unable
to write a record. (If an 'event_notification_command' is defined,
this should serve as a backup notification of the event).
2015-03-19 23:09:29 +09:00
Ian Barwick
9a3196b671
Add a hint if 'standby register' fails due to insert error
2015-03-19 23:01:31 +09:00
Ian Barwick
46a3082055
No need for log_event() function
2015-03-19 22:49:50 +09:00
Ian Barwick
ebabc68f8a
Add recovery.conf file location and contents to debugging output
2015-03-19 22:15:45 +09:00
Ian Barwick
c757985640
primary -> master
...
For consistency
2015-03-19 11:26:47 +09:00
Ian Barwick
172a3d90cf
Terminate rather than destroy
2015-03-19 09:55:20 +09:00
Ian Barwick
86d24759a0
In configuration check, check that 'archive_command' is not empty
2015-03-18 16:07:34 +09:00
Ian Barwick
7bd54b5a70
3.0rc3
2015-03-17 23:16:18 +09:00
Ian Barwick
3e04c8e720
Event logging and notifications
2015-03-17 20:10:00 +09:00
Ian Barwick
7f98bb7aec
Create event record for rempgrd termination
...
Also fix a few incorrect exit codes.
2015-03-17 19:08:59 +09:00
Ian Barwick
9e2736be4c
Remove superfluous configuration check
...
Also add note about configuration parsing failure and event logging.
2015-03-17 18:41:17 +09:00
Ian Barwick
4b3966d6a7
Update HISTORY
2015-03-17 16:07:04 +09:00
Ian Barwick
5a1036cea2
Update and rework repmgr.conf.sample
2015-03-17 14:13:46 +09:00
Ian Barwick
e21448831d
Standardize configuration error messages for 'failover' parameter.
...
Better to fail with an error than assume a default value if an
unrecognized value is detected.
2015-03-17 08:19:29 +09:00
Ian Barwick
155f5075cb
Improve configuration error and warning messages
2015-03-17 08:14:27 +09:00
Ian Barwick
9cfd6680b3
Remove superfluous comment
2015-03-17 08:01:09 +09:00
Ian Barwick
874616f149
Add %n/node id format option for 'event_notification_command'
2015-03-16 18:04:50 +09:00
Ian Barwick
61ce18ebbe
Add configuration parameter 'event_notifications'
2015-03-16 17:31:26 +09:00
Ian Barwick
922dfd88e5
Add configuration option 'event_notification_command'
...
Command to be executed each time an event is logged.
Following formatting sequences will be interpolated:
%e - event type
%d - description
%s - success (1 or 0)
%t - timestamp
2015-03-16 13:41:13 +09:00
Ian Barwick
b41235b896
Tweak code comments
2015-03-16 09:31:08 +09:00
Ian Barwick
0307c51d4b
Add initial event logging code
2015-03-16 07:44:54 +09:00
Abhijit Menon-Sen
886a9fd036
A couple of items for later
2015-03-13 16:15:53 +05:30
Abhijit Menon-Sen
94d0d119f6
Fix typo
2015-03-13 16:15:53 +05:30
Ian Barwick
96c8cd4148
Update code comments
2015-03-13 16:43:12 +09:00
Ian Barwick
619f95d85c
Update code comments
2015-03-13 12:49:06 +09:00
Ian Barwick
97ae6dbf57
Remove superfluous configuration check
...
This is already done in parse_config()
2015-03-13 12:04:08 +09:00
Ian Barwick
2929ed9be0
Make parameters 'conninfo' and 'node_name' mandatory
...
There's no reason why they need to be absent; if absent they're
likely to cause confusion.
2015-03-13 11:57:34 +09:00
Ian Barwick
33037dd7fb
Explicitly specify problematic parameter names in error messages.
2015-03-13 11:47:28 +09:00
Ian Barwick
36db199882
Retrieve node's active status too
2015-03-13 11:31:01 +09:00
Ian Barwick
728b71c700
Clarify error message
...
"Node information" is too vague.
2015-03-13 08:26:11 +09:00
Abhijit Menon-Sen
97c9525479
Note what to do with the names
2015-03-12 20:34:08 +05:30
Abhijit Menon-Sen
bf957ac173
Note 9.4 above wal_keep_segments
2015-03-12 20:33:07 +05:30
Abhijit Menon-Sen
e358c20b84
Oops, it's .rst not .md; also typeset filenames properly
2015-03-12 20:21:17 +05:30
Abhijit Menon-Sen
aaf219a694
Even more clear
2015-03-12 20:15:23 +05:30
Abhijit Menon-Sen
c69e4e93f2
Be very clear about conninfo's host=
2015-03-12 20:14:27 +05:30
Abhijit Menon-Sen
8a4f4bbd83
Shorten the title; we don't need to say cluster
2015-03-12 20:11:29 +05:30
Abhijit Menon-Sen
36a9e17bd3
More feedback is good
2015-03-12 20:09:03 +05:30
Abhijit Menon-Sen
95ac7e889b
Tweak and add a reference to .sample
2015-03-12 20:07:46 +05:30
Abhijit Menon-Sen
0a5457efb2
Rewrite the repmgr configuration section
2015-03-12 20:04:31 +05:30
Abhijit Menon-Sen
aa67a4b7e9
Add missing newline
2015-03-12 19:46:40 +05:30
Abhijit Menon-Sen
f8a0e45f5b
Rewrite the server configuration section
2015-03-12 19:39:10 +05:30
Abhijit Menon-Sen
6b8f96b590
Split out packaging notes too
2015-03-12 18:34:55 +05:30