Commit Graph

  • 9c3d79147b now version.h contains the right version v2.0RC1 Christian Kruse 2014-02-07 21:47:39 +01:00
  • ca470647cb cleanup of usage text Christian Kruse 2014-01-30 14:26:17 +01:00
  • 62ee287e3f updated TODO Christian Kruse 2014-01-30 14:10:14 +01:00
  • 729a1b848a release notes for 2.0 stable Christian Kruse 2014-01-30 13:59:17 +01:00
  • 701cf043fd fix: seems as if I missread -hackers Christian Kruse 2014-01-23 16:46:49 +01:00
  • bbb67c55f6 simple past of set is set Christian Kruse 2014-01-23 10:50:37 +01:00
  • c2c48a9fe6 removed already finished TODO tasks Christian Kruse 2014-01-23 10:48:04 +01:00
  • 9d6ac2ebf9 fixed documentation and line endings Christian Kruse 2014-01-23 10:39:21 +01:00
  • 680f23fb1d copyright push Christian Kruse 2014-01-23 10:37:49 +01:00
  • 1159113c58 ignore the dynamic shared memory directory, too Christian Kruse 2014-01-23 10:02:09 +01:00
  • f25a709454 added an explicit type cast to avoid compiler warnings Christian Kruse 2014-01-22 15:17:47 +01:00
  • 897daddcc7 removed not needed arguments to avoid compiler warnings Christian Kruse 2014-01-22 15:17:28 +01:00
  • 0fdcce0477 use if instead of switch and avoid a warning Christian Kruse 2014-01-22 15:12:29 +01:00
  • de58eff7c1 added a chdir() for proper daemonizing Christian Kruse 2014-01-22 14:30:38 +01:00
  • f2a0b31a20 more log format fixes Christian Kruse 2014-01-22 14:30:24 +01:00
  • e007a55967 fix: do not use fsync() Christian Kruse 2014-01-22 11:47:50 +01:00
  • d235c696af fix: do not newline at the start of a log line Christian Kruse 2014-01-22 11:47:02 +01:00
  • 4ef6fbb5fe do not close stderr but reopen it to /dev/null Christian Kruse 2014-01-21 16:25:57 +01:00
  • 2e61d7b156 refactoring: daemonizing is now a function Christian Kruse 2014-01-21 16:19:49 +01:00
  • 4496a0761e we now use a function and are more sophisticated Christian Kruse 2014-01-21 16:18:15 +01:00
  • 3978ead184 use a second fork to avoid a terminal Christian Kruse 2014-01-21 15:51:33 +01:00
  • b36dbf61fe reopening stdin and stdout to /dev/null now Christian Kruse 2014-01-21 15:31:38 +01:00
  • 84466ecca5 log_crit() is more appropriate Christian Kruse 2014-01-21 15:23:20 +01:00
  • 649086e5e4 use unlink() instead of remove() Christian Kruse 2014-01-21 15:22:31 +01:00
  • 7cf2eb440d renamed config options to a much more descriptive name Christian Kruse 2014-01-21 15:19:50 +01:00
  • 388bbfb773 split install target into install_prog and install_ext Christian Kruse 2014-01-21 14:23:33 +01:00
  • a89aa02c68 fix: make pg_config be settable from outside the makefile Christian Kruse 2014-01-21 14:22:59 +01:00
  • c81793b63f fix: added forgotten options.priority value Christian Kruse 2014-01-21 14:18:12 +01:00
  • b4e83cf188 Add format attribute checking for printf() like functions Christian Kruse 2014-01-21 14:14:36 +01:00
  • 1db61ce277 fix: fail when repmgr_funcs is not pre-loaded Christian Kruse 2014-01-21 13:53:40 +01:00
  • 41abf9a7ef fix: flushing and fsync()ing the log file Christian Kruse 2014-01-21 13:49:21 +01:00
  • abebc53ddc fix: sscanf() does not set variables to 0 on error Christian Kruse 2014-01-21 13:48:41 +01:00
  • 5fc4a0382f added config options sleep_delay and sleep_monitor Christian Kruse 2014-01-17 13:50:12 +01:00
  • a7d3c9b93a fix: also close stderr when using syslog logging Christian Kruse 2014-01-17 12:14:26 +01:00
  • ee9dc9e247 do not use exit() Christian Kruse 2014-01-17 11:28:55 +01:00
  • 94cb5b94e7 fix: reopen log file on SIGHUP Christian Kruse 2014-01-16 17:16:45 +01:00
  • a08aa50f92 fix: close stdin and stdout only in repmgrd Christian Kruse 2014-01-16 16:01:58 +01:00
  • 9563877fbb new config option, stdout/stdin closed Christian Kruse 2014-01-16 15:22:34 +01:00
  • 4f3bd6612c do not exit in getMasterConnection() Christian Kruse 2014-01-16 15:07:15 +01:00
  • 192ee3cdb0 do not exit in get_cluster_size Christian Kruse 2014-01-16 15:04:31 +01:00
  • 6f149ead8f do not exit in guc_setted and guc_setted_typed Christian Kruse 2014-01-16 14:48:46 +01:00
  • 77aa6aa326 do not exit in pg_version Christian Kruse 2014-01-16 14:32:04 +01:00
  • 18206b3a64 do not exit() in is_witness Christian Kruse 2014-01-16 13:59:48 +01:00
  • 91446bcf93 fix: do not try to reconnect infinitely Christian Kruse 2014-01-10 17:26:02 +01:00
  • dcdf8788ae fix: handle connection loss to standby Christian Kruse 2014-01-10 17:12:03 +01:00
  • 4fabfbbbd0 fix: do not exit in is_standby() Christian Kruse 2014-01-10 17:11:16 +01:00
  • c41030b40e Merge branch 'REL2_0_STABLE' Christian Kruse 2014-01-10 16:07:33 +01:00
  • a0fdadd5d2 this way it is much cleaner Christian Kruse 2014-01-09 15:35:44 +01:00
  • 4c3d7f80ed now code compiles with -ansi -pedantic and has less warnings Christian Kruse 2014-01-09 14:29:14 +01:00
  • 6e3fe059d8 added config options pg_bindir and pg_ctl_options Christian Kruse 2014-01-09 14:12:37 +01:00
  • 9f26254ac3 fix: added some missing initializers to avoid compiler warning Christian Kruse 2014-01-09 13:33:22 +01:00
  • 0e8ff1730e added handling of a PID file Christian Kruse 2014-01-09 13:04:40 +01:00
  • 634fdff303 fix: do not call setup_event_handlers() on WIN32 Christian Kruse 2014-01-09 12:57:16 +01:00
  • cbce29f009 fixed typos Christian Kruse 2014-01-08 11:55:03 +01:00
  • 920f925e4b added a new cli option --daemonize Christian Kruse 2014-01-08 11:53:15 +01:00
  • 9fe2d6886e white space cleanup Christian Kruse 2014-01-07 16:42:06 +01:00
  • 0068dd573a fix: do not compare pointers but the strings Christian Kruse 2014-01-07 15:52:29 +01:00
  • d0f3cb59c7 fix: create data directory after sanity check Christian Kruse 2014-01-07 14:42:55 +01:00
  • 7428e92e10 fix: correctly check the return value of PQexec() Christian Kruse 2014-01-07 14:27:31 +01:00
  • a97065113d fix: remove own node earlier if force is set Christian Kruse 2014-01-07 14:16:58 +01:00
  • 9e2f276fcf fix: do not exit after pg_start_backup() w/o pg_stop_backup() Christian Kruse 2014-01-07 14:02:29 +01:00
  • b0cd2b5e43 fix: do not exit() in create_pgdir() Christian Kruse 2014-01-07 14:01:46 +01:00
  • 9209248420 Fix oversight in the header of guc_setted_typed() v2.0beta2 Jaime Casanova 2013-12-19 11:09:08 -05:00
  • 6693b99288 Files to create the debian package Jaime Casanova 2013-12-19 01:43:12 -05:00
  • 8e7b487838 Update debian control file Jaime Casanova 2013-12-19 01:41:24 -05:00
  • 7f796e2d15 Update history and credit files Jaime Casanova 2013-12-19 01:40:00 -05:00
  • 5e04ab6eae Add a ssh_options parameter to allow ssh checking to consider non-default values (ie: a different port) Jaime Casanova 2013-12-19 00:58:10 -05:00
  • a1f4285e2b Add guc_setted_typed() function to allow wal_keep_segmeents to be checked as an integer instead of text Jaime Casanova 2013-12-19 00:55:56 -05:00
  • 493133986d Add timestamps to log line in stderr Jaime Casanova 2013-12-19 00:06:01 -05:00
  • 8b370dc581 Fix some typos Jaime Casanova 2013-12-07 13:25:46 -05:00
  • 43af00aa12 Ignore pg_log when cloning, just like we ignore pg_xlog Jaime Casanova 2013-12-04 01:23:48 -05:00
  • 3c8df59eb9 Make repmgr compile in 9.3. Jaime Casanova 2013-11-14 00:43:35 -05:00
  • b410772627 Rework algorithm to coordinate voting Jaime Casanova 2013-08-29 15:27:37 -05:00
  • d99024ba11 Make repmgrd survive to the failover Jaime Casanova 2013-09-09 11:10:20 -05:00
  • 1afaa3a26f Rearrange the logic in do_failover() for further improvements. Jaime Casanova 2013-08-22 14:50:29 -05:00
  • 079a7c9f16 In a failover situation get the nodes in a well defined order. Jaime Casanova 2013-07-26 00:52:31 -05:00
  • 3b66a31ac9 In a failover situation get the nodes in a well defined order. Jaime Casanova 2013-07-26 00:52:31 -05:00
  • bdf957ca52 Add a missing ')'. This is a typo introduced in commit 2bc8044fda Jaime Casanova 2013-07-13 12:37:15 -05:00
  • ad3630e7a9 Add a missing ')'. This is a typo introduced in commit 2bc8044fda Jaime Casanova 2013-07-13 12:37:15 -05:00
  • 67b451aa45 If PQgetCancel() returns NULL we should also return false. Jaime Casanova 2013-07-12 08:01:01 -05:00
  • 0a70d907ae Improve messages in wait_connection_availability, so we know what error makes the failover procedure to start Jaime Casanova 2013-07-10 19:25:58 -05:00
  • 2e7acf03c4 If PQgetCancel() returns NULL we should also return false. Jaime Casanova 2013-07-12 08:01:01 -05:00
  • 2bc8044fda Improve messages in wait_connection_availability, so we know what error makes the failover procedure to start Jaime Casanova 2013-07-10 19:25:58 -05:00
  • ab1d380843 If PQcancel() fails, consider it as if the master is failing. Jaime Casanova 2013-07-10 09:53:45 -05:00
  • b0b44a157f If PQcancel() fails, consider it as if the master is failing. Jaime Casanova 2013-07-10 09:53:45 -05:00
  • 031f9aedcc Options -F -I -v doesn't accept arguments, which means that on getopt_long shouldn't be marked with the colon (:) character. Jaime Casanova 2013-01-13 16:32:56 -05:00
  • 6390a41953 Options -F -I -v doesn't accept arguments, which means that on getopt_long shouldn't be marked with the colon (:) character. Jaime Casanova 2013-01-13 16:32:56 -05:00
  • 49a2531930 Options -F -W -I -v doesn't accept arguments, which means that on getopt_long shouldn't be marked with the colon (:) character. Jaime Casanova 2013-01-13 16:32:56 -05:00
  • 672b237c4e Options -F -W -I -v doesn't accept arguments, which means that on getopt_long shouldn't be marked with the colon (:) character. Jaime Casanova 2013-01-13 16:32:56 -05:00
  • 7d94151494 If the node is a witness don't bother asking its position, it always will be 0/0. We just need to check that we can connect to it to determine if we are in the majority. Jaime Casanova 2013-01-11 03:42:08 -05:00
  • 4191b77e70 If the node is a witness don't bother asking its position, it always will be 0/0. We just need to check that we can connect to it to determine if we are in the majority. Jaime Casanova 2013-01-11 03:42:08 -05:00
  • 2a5d431481 Fix a problem that caused a standby to promote itself without going to voting procedure. Jaime Casanova 2012-12-19 11:45:58 -05:00
  • 81b8a944de Fix a problem that caused a standby to promote itself without going to voting procedure. Jaime Casanova 2012-12-19 11:45:58 -05:00
  • d7d91e1c12 Formatting using astyle Jaime Casanova 2012-12-11 11:54:35 -05:00
  • 93a999adc7 Formatting code using astyle Jaime Casanova 2012-12-11 11:49:07 -05:00
  • 1b69282df9 Formatting code using astyle Jaime Casanova 2012-12-11 11:47:59 -05:00
  • 06dd252f69 To select new master it needs to know which standby has received more xlog records from master, so it standby should use pg_last_xlog_receive_location() to report their positions. This solves a possible situation in which a standby that is considered as new master when promoted is no longer the best option. Jaime Casanova 2012-12-03 09:18:08 -05:00
  • 088ca29fe3 To select new master it needs to know which standby has received more xlog records from master, so it standby should use pg_last_xlog_receive_location() to report their positions. This solves a possible situation in which a standby that is considered as new master when promoted is no longer the best option. Jaime Casanova 2012-12-03 09:18:08 -05:00
  • 30e9d06172 Add an option for STANDBY FOLLOW to wait for a master to appear. This is important for autofailover to do the right thing when standbys detected master death at different times. Jaime Casanova 2012-11-11 10:07:34 -05:00
  • d6bd5aa381 Add an option for STANDBY FOLLOW to wait for a master to appear. This is important for autofailover to do the right thing when standbys detected master death at different times. Jaime Casanova 2012-11-11 10:07:34 -05:00