Martin
0dd617cfca
The ALTER TABLE to set the foreign key as DEFERRABLE only worked on
...
9.4+, as there is no ALTER CONSTRAINT in 9.3.
This new ALTER TABLE does the same in two hops by removing the foreign
key and creating it again in the same ALTER TABLE.
This fixes #183
2016-06-02 13:56:06 -03:00
Martin
f18d629bd2
Typo in a comment.
...
Reported by @nucfisher
2016-05-30 09:41:38 -03:00
Ian Barwick
afc904f876
Fix typos and whitespace
2016-05-30 16:01:38 +09:00
Ian Barwick
3bcea46c3b
Clarify handling of tablespace_map file.
2016-05-30 10:48:08 +09:00
Ian Barwick
d7e85f7565
Clarify purpose of remapping code
2016-05-30 07:47:09 +09:00
Ian Barwick
b14d8ddb74
Ensure read_backup_label() does not exit on error
...
This would leave an unstopped backup; we'll let do_standby_clone()
do any cleanup necessary before exiting with an error.
2016-05-24 17:04:54 +09:00
Ian Barwick
9b2a907b09
Convert erroneously forgotten printf debug to proper logging
2016-05-24 16:44:22 +09:00
Martín Marqués
f63d42fe77
Merge pull request #178 from gciolli/master
...
Debian auto-build version upgrade
2016-05-23 14:48:28 -03:00
Gianni Ciolli
560066fa9d
Basic CSV mode for "repmgr cluster show", enabled by --csv command
...
line option
2016-05-23 19:00:25 +02:00
Martin
3937670d14
Added logrotate configuration file (for those who would like one ;))
...
and changed parameters in sysconfig file so that we use /var/log for
logs and /var/run for pid files.
2016-05-23 13:30:05 -03:00
Gianni Ciolli
0daa7381b3
Debian auto-build version upgrade
2016-05-22 22:10:31 +02:00
Martín Marqués
e53545af4f
Merge pull request #177 from petere/fix-compiler-warning
...
Fix compiler warning
2016-05-22 09:55:50 -03:00
Peter Eisentraut
45178c19d8
Fix compiler warning
...
For a char * variable, '\0' is just a strange way to write NULL, and
clang warns about it.
2016-05-21 21:04:19 -04:00
Martin
cf46834041
Add new option pg_restore_command.
...
This can be used so that repmgr standby clone adds the string
specified in repmgr.conf as a restore_command in recovery.conf.
We can use this option for integration with barman by setting the
parameter to an appropriate get-wal call.
2016-05-17 15:21:40 -03:00
Martin
c30609426a
Fix several inconsistencies added in d5d8eb2bcb8862607799d602af620e5ca98bc837
2016-05-17 15:21:40 -03:00
Martin
1c49c4159c
Add -X stream parameter to pg_basebackup to ensure that we get
...
all the WALs needed without needing to set wal_keep_segments to
a ridiculously high value.
This is not necessary on 9.6 if we are using replication slots,
as all WAL segments needed will be kept on the primary until
they are consumed by the slot.
2016-05-17 15:21:40 -03:00
Martin
b6b6439819
I copied over the rmtree function (and other functions needed by this one)
...
from the postgresql code so we use that instead of issuing system calls
with rm -rf ....
I also eliminated the rm -rf for pg_xlog.
Will later do the same with the other system call to remove files
in pg_replslot/
2016-05-17 15:21:40 -03:00
Ian Barwick
9a05999abb
Fix log formatting
2016-05-17 17:24:02 +09:00
Ian Barwick
4c463a66b7
Update HISTORY
2016-05-17 10:37:14 +09:00
Ian Barwick
209de699ce
README.md: improve documentation of repl_status view
2016-05-16 13:51:40 +09:00
Ian Barwick
e814c1120e
repmgrd: handle situations where streaming replication is inactive
2016-05-12 22:17:44 +09:00
Ian Barwick
247823db4d
Remove extraneous PQfinish()
2016-05-12 14:05:44 +09:00
Ian Barwick
beda22d5f9
Correct check for wal_level in 9.3
2016-05-12 13:06:10 +09:00
Ian Barwick
2eb00a3e6f
Remove unneeded column
2016-05-12 09:56:29 +09:00
Ian Barwick
0a798bf6e4
Comment fixes and formatting tweaks
2016-05-12 09:52:22 +09:00
Ian Barwick
21b2ff1a1f
repmgrd: better handling of missing upstream_node_id
...
Ensure we default to master node.
2016-05-12 09:20:33 +09:00
Ian Barwick
57f9432692
Add missing newlines in log messages
2016-05-11 21:47:40 +09:00
Ian Barwick
54d3c7a4ca
repmgrd: avoid additional connection to local instance in do_master_failover()
2016-05-11 09:55:38 +09:00
Ian Barwick
7fd44a3d74
Suppress gnu_printf format warning
2016-05-11 09:23:06 +09:00
Ian Barwick
b0f6b7bad7
repmgrd: rename variable for clarity
2016-05-11 08:29:55 +09:00
Ian Barwick
4dbbf40196
Don't follow the promotion candidate standby if the primary reappears
2016-05-10 13:58:59 +09:00
Ian Barwick
d5e24689a4
Don't terminate a standby's repmgrd if self-promotion fails due to master reappearing
...
Per GitHub #173
2016-05-10 11:45:03 +09:00
Martin
10e47441a2
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-06 17:34:46 -03:00
Ian Barwick
274a30efa5
Fix pre-9.6 wal_level check
v3.1.2
2016-04-12 16:17:50 +09:00
Ian Barwick
db63b5bb1c
Fix hint message formatting
2016-04-12 16:08:07 +09:00
Ian Barwick
e100728b93
Update HISTORY
2016-04-12 15:51:42 +09:00
Ian Barwick
d104f2a914
Update HISTORY
2016-04-12 15:51:42 +09:00
Ian Barwick
2946c097f0
repmgrd: rename some variables to better match the system functions they're populated from
2016-04-12 15:51:42 +09:00
Ian Barwick
a538ceb0ea
Remove duplicate inclusion from header file
2016-04-12 15:51:42 +09:00
Ian Barwick
5a2a8d1c82
Update HISTORY
2016-04-12 15:51:41 +09:00
Ian Barwick
b5a7efa58e
Preserve failover slots when cloning a standby, if enabled
2016-04-12 15:51:38 +09:00
Ian Barwick
9f6f58e4ed
MAXFILENAME -> MAXPGPATH
2016-04-06 11:19:00 +09:00
Craig Ringer
c22f4eaf6f
WIP support for preserving failover slots
2016-04-06 11:18:54 +09:00
Martin
925d82f7a4
Add to the documentation the need to have archive_mode and
...
archive_command set in postgresql.conf
Fixes #154
2016-04-05 21:37:14 -03:00
Ian Barwick
1db577e294
Update Makefile
...
Add include file dependencies (see caveat in file).
Also update comments.
2016-04-06 09:20:00 +09:00
Martin
a886fddccc
We were not checking the return code after rsyncing the tablespaces.
...
This fixes #168
2016-04-05 15:30:42 -03:00
Martin
83e5f98171
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-05 15:22:40 -03:00
Ian Barwick
eb31a56186
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-04-05 22:30:19 +09:00
Ian Barwick
8cd2c6fd05
Add comment about wal_level setting interpretation
2016-04-04 14:57:20 +09:00
Ian Barwick
e3e1c5de4e
Use "immediately_reserve" parameter in pg_create_physical_replication_slot (9.6)
2016-04-04 12:56:00 +09:00