Commit Graph

  • bbdcffa813 Fixed typos notified by lintian Gabriele Bartolini 2012-11-09 18:09:43 +01:00
  • cd1a84252e Fix node decision logic when priorities are involved. Currently if two nodes with different prorities are equally good to be promoted the second one (with a lower priority, considering them in descending order) will win. Jaime Casanova 2012-09-16 02:38:28 -05:00
  • 5f33d9d715 Fix node decision logic when priorities are involved. Currently if two nodes with different prorities are equally good to be promoted the second one (with a lower priority, considering them in descending order) will win. Jaime Casanova 2012-09-16 02:38:28 -05:00
  • 2e19b3688b Add a comment Jaime Casanova 2012-09-16 02:23:16 -05:00
  • 877f4cf82e Add a comment Jaime Casanova 2012-09-16 02:23:16 -05:00
  • de883a4c84 Keep compiler quiet. Noted when compiling in FreeBSD in which i get a warning for an uninitialized variable. Jaime Casanova 2012-09-16 02:10:02 -05:00
  • 949f5ee498 Keep compiler quiet. Noted when compiling in FreeBSD in which i get a warning for an uninitialized variable. Jaime Casanova 2012-09-16 02:10:02 -05:00
  • 8ee715b657 Make repmgr compatible with FreeBSD. We need to #include <sys/wait.h> to get WEXITSTATUS() Jaime Casanova 2012-09-15 17:45:38 -05:00
  • d5ec394c54 Make repmgr compatible with FreeBSD. We need to add an #include and make it use a different path for the "true" binary. Jaime Casanova 2012-09-15 17:32:38 -05:00
  • c2344fe843 When we have more command-line arguments than we should have we need to show that last value and we should use only optind for that instead of optind+1 Jaime Casanova 2012-08-30 02:11:48 -05:00
  • f6093386a8 When we have more command-line arguments than we should have we need to show that last value and we should use only optind for that instead of optind+1 Jaime Casanova 2012-08-30 02:11:48 -05:00
  • eb2f7efb4a When we have more command-line arguments than we should have we need to show that last value and we should use only optind for that instead of optind+1 Jaime Casanova 2012-08-30 02:11:48 -05:00
  • 85ff3ec286 Fix documentation to always use -h sintax to refer to the node we want to clone or connect to, instead of relying on the fact that for some time putting that argument at last worked. Jaime Casanova 2012-08-30 02:10:10 -05:00
  • 499a501afd Make repmgr compatible with FreeBSD. We need to add an #include and make it use a different path for the "true" binary. Jaime Casanova 2012-09-15 17:32:38 -05:00
  • 0a9107d76d Improve sample of commands for promote and follow Jaime Casanova 2012-09-11 15:53:57 -05:00
  • 2803bb92a8 Make repmgr compatible with FreeBSD. We need to add an #include and make it use a different path for the "true" binary. Jaime Casanova 2012-09-15 17:32:38 -05:00
  • 16fe41eecf Improve sample of commands for promote and follow Jaime Casanova 2012-09-11 15:53:57 -05:00
  • 95ec0450da When we have more command-line arguments than we should have we need to show that last value and we should use only optind for that instead of optind+1 Jaime Casanova 2012-08-30 02:11:48 -05:00
  • 57aa95f674 Fix documentation to always use -h sintax to refer to the node we want to clone or connect to, instead of relying on the fact that for some time putting that argument at last worked. Jaime Casanova 2012-08-30 02:10:10 -05:00
  • efd50f11ac Fix HISTORY to show from newest to oldest v1.2.0 Jaime Casanova 2012-07-27 11:30:35 -05:00
  • d365a309fc Fix HISTORY to show from newest to oldest Jaime Casanova 2012-07-27 11:26:18 -05:00
  • 56d2ae4e81 Fix HISTORY to show from newest to oldest v2.0beta1 Jaime Casanova 2012-07-27 11:26:18 -05:00
  • d5a41bb587 Fix tabs in HISTORY Jaime Casanova 2012-07-27 11:20:56 -05:00
  • 474d3217b4 Fix typos in RELEASE NOTES Jaime Casanova 2012-07-27 11:15:50 -05:00
  • 3edd87a041 Fix tabs in HISTORY Jaime Casanova 2012-07-27 11:20:56 -05:00
  • 740208da1c Fix typos in RELEASE NOTES Jaime Casanova 2012-07-27 11:15:50 -05:00
  • 7a00d5a9a4 Now that we can have no monitoring we need to check all nodes at failover not only those in repl_monitor Jaime Casanova 2012-07-21 17:49:38 -05:00
  • 664e1a8321 Now that we can have no monitoring we need to check all nodes at failover not only those in repl_monitor Jaime Casanova 2012-07-21 17:49:38 -05:00
  • 5683b905dd New development branch is 2.1dev Jaime Casanova 2012-07-21 12:22:04 -05:00
  • d43c6334da Prepare HISTORY and release notes for release Jaime Casanova 2012-07-21 12:06:33 -05:00
  • 45a39084ed Prepare release notes for release Jaime Casanova 2012-07-21 11:56:00 -05:00
  • f984b3fd33 Document tunables added in aaf35947ed Jaime Casanova 2012-07-21 11:10:59 -05:00
  • aaf35947ed Add tunables for connection retries to master and interval between connection retries, these parameters along with master_response_timeout determines the amount of time since failure to failover Jaime Casanova 2012-07-21 11:01:00 -05:00
  • 08ed0aa987 Commit 2d24518d9d added an additional '}' at the end of parse_config(). removing. Jaime Casanova 2012-07-21 10:42:58 -05:00
  • 2d24518d9d If master_response_timeout hasn't been set in repmgr.conf it defaults to zero, which was causing to a false positive in the failure detection logic in wait_connection_availability(). So, change that to defaults to 60s and add a check to avoid it being set to zero or negative. Jaime Casanova 2012-07-21 09:49:05 -05:00
  • a6c94b29de Change release notes because of commit bf241ba1d6 Jaime Casanova 2012-07-06 02:00:46 -05:00
  • bf241ba1d6 Make the monitoring history capabilities of repmgr be optional and turned off by default. Most of it has been superseeded by pg_stat_replication view, we can still start it by using the switch --monitoring-history Jaime Casanova 2012-07-06 01:51:22 -05:00
  • 94c73a016f Add a release note that was missing Jaime Casanova 2012-07-05 09:36:42 -05:00
  • 41dbc39527 Add release notes Jaime Casanova 2012-07-05 09:35:23 -05:00
  • 50b7147f15 Change Copyright date to cover 2012 Jaime Casanova 2012-07-04 10:47:26 -05:00
  • f5e57aa433 Add an option for "no-history" mode, where repmgrd just checks the conectivity of master but don't INSERT any data into it Jaime Casanova 2012-07-04 10:07:31 -05:00
  • ac5a9d1fd6 The release changed, just wait a little before setting it. Also make well known names in HISTORY be only names, without last name Jaime Casanova 2012-07-02 00:06:57 -05:00
  • cb740b68be Add a check of the connection inside the CancelQuery() so it check that before trying to cancel a query, which can block. Jaime Casanova 2012-06-26 11:29:02 -05:00
  • d58ea77798 Add a quick setup for autofailover Jaime Casanova 2012-06-26 07:49:43 -05:00
  • e3c3c22b6e Improve the version message to actually show the repmgr version not only postgresql's one Jaime Casanova 2012-06-25 22:53:16 -05:00
  • be5cbe4ddd Improve the version message to actually show the repmgr version not only postgresql's one Jaime Casanova 2012-06-25 22:53:16 -05:00
  • 861a3c8f22 Fix CLUSTER CLEANUP, it needs to establish a local connection in order to look for the master Jaime Casanova 2012-06-16 01:32:59 -05:00
  • e51870b504 Force to enter a password for the superuser in the witness, this is in case we need to send a password to connect as stated in master's pg_hba.conf. Jaime Casanova 2012-06-15 13:51:45 -05:00
  • 5651720560 Remove a variable left in last commit Jaime Casanova 2012-06-15 09:46:01 -05:00
  • d32a6cdb24 Remove kludge added to create user and db for witness. It's too fragile, almost always cause a "segment violation" and don't seems to be very useful. Jaime Casanova 2012-06-15 09:41:54 -05:00
  • 9e10987b90 Fix a few bugs introduced when merging features Jaime Casanova 2012-06-15 09:40:09 -05:00
  • 30d35d5b4c Names on history file are without surnames when they are well-known so, keep it that way Jaime Casanova 2012-06-13 00:48:34 -05:00
  • fa889a11ac Remove now finished TODO item about having a sanity check for ssh Jaime Casanova 2012-06-13 00:43:00 -05:00
  • 64fce88e99 Add a CLUSTER CLEANUP command to clean monitor's history, also include a --keep-history (-k) option to indicate how many days of history to keep Jaime Casanova 2012-06-13 00:39:54 -05:00
  • f4087d0a32 Add a \n in a message Jaime Casanova 2012-06-12 23:41:31 -05:00
  • 7a76f1998c getMasterConnection() cannot avoid checking the same node that asks to find the master. This was a micro optimization based on the fact that all commands that needed to detect the master were executed from the standby but now that we have CLUSTER level commands that is not true anymore Jaime Casanova 2012-06-12 23:28:24 -05:00
  • a55d7a4bd3 getMasterConnection() cannot avoid checking the same node that asks to find the master. This was a micro optimization based on the fact that all commands that needed to detect the master were executed from the standby but now that we have CLUSTER level commands that is not true anymore Jaime Casanova 2012-06-12 23:23:49 -05:00
  • 4db046a8ea Allow repmgr to obtain tablespace's locations from pg 9.2 and later in which we no longer have a spclocation column in pg_tablespaces Jaime Casanova 2012-06-12 11:05:51 -05:00
  • 5d8cf6abe0 Allow repmgr to obtain tablespace's locations from pg 9.2 and later in which we no longer have a spclocation column in pg_tablespaces Jaime Casanova 2012-06-12 10:45:48 -05:00
  • 9caa243354 Moving the 'Starting backup' message to a better place Jaime Casanova 2012-06-12 09:39:02 -05:00
  • 331eca447a STANDBY CLONE should be run by a SUPERUSER, otherwise we won't be able to retrieve data_directory and the other parameters we need by querying the database. Jaime Casanova 2012-06-12 09:32:03 -05:00
  • 30b124e91f STANDBY CLONE should be run by a SUPERUSER, otherwise we won't be able to retrieve data_directory and the other parameters we need by querying the database. Jaime Casanova 2012-06-12 09:32:03 -05:00
  • 6880483947 STANDBY CLONE should be run by a SUPERUSER, otherwise we won't be able to retrieve data_directory and the other parameters we need by querying the database. Jaime Casanova 2012-06-12 09:32:03 -05:00
  • 3d89fdadab Fix a typo in a message Jaime Casanova 2012-06-12 09:28:27 -05:00
  • 6e9e4e05ae Add test_ssh_connection Cédric Villemain 2011-05-09 22:39:21 +02:00
  • 17a160e970 Correct credits Jaime Casanova 2012-05-09 14:59:00 -05:00
  • e0e01aa9db Add Carlo to CREDITS Jaime Casanova 2012-04-27 02:09:48 -05:00
  • b09eff9f76 Avoid the possibility of a double free. Fix by Carlo Ascani Jaime Casanova 2012-04-27 02:08:40 -05:00
  • 3c5d82b9ef Complete CREDITS and HISTORY for release Jaime Casanova 2012-04-27 02:07:42 -05:00
  • 257dbc4f42 Cleanup of patch that introduces write_primary_conninfo() Jaime Casanova 2012-04-27 01:23:37 -05:00
  • 2a64099163 Added function "write_primary_conninfo" which now adds the username to the primary_conninfo parameter in recovery.conf Jaime Casanova 2012-04-27 01:10:24 -05:00
  • 41c05bea7b Fix CLUSTER SHOW, that i have broken Jaime Casanova 2012-04-26 13:58:39 -05:00
  • 7d76d86e19 Add debug information to CLUSTER SHOW y CLUSTER CLEANUP Jaime Casanova 2012-04-26 13:31:54 -05:00
  • 36d5b5bc24 I need a local connection to get the master of the cluster Jaime Casanova 2012-04-26 12:29:04 -05:00
  • c543402d65 A typo that escaped to my previous review Jaime Casanova 2012-04-26 12:23:24 -05:00
  • d0959b953e Cleanup patch about CLUSTER CLEANUP Jaime Casanova 2012-04-26 12:21:41 -05:00
  • 0660bded0b Fix a switch in which a "break" was missing that makes always that --force option was used end up in the default section and error. Jaime Casanova 2012-04-19 12:21:49 -05:00
  • c00fa9f9ba Fix a switch in which a "break" was missing that makes always that --force option was used end up in the default section and error. Jaime Casanova 2012-04-19 12:18:21 -05:00
  • d36ee899dc Complete HISTORY information in preparation for release of v1.1.1 v1.1.1 Jaime Casanova 2012-04-18 09:49:38 -05:00
  • 209a0c64d2 Add documentation about both CLUSTER SHOW and CLUSTER CLEANUP commands Jaime Casanova 2012-04-14 21:56:58 -05:00
  • fd76ec6283 Adds a CLUSTER CLEANUP command to clean monitor's history, also include a --keep-history (-k) option to indicate how many days of history to keep Jaime Casanova 2012-04-14 21:34:06 -05:00
  • 7d579cf71f Add CLUSTER SHOW command to show the current nodes configured Jaime Casanova 2012-04-12 09:57:49 -05:00
  • d790ef740b Add a paragraph in the docs describing how to clean history Jaime Casanova 2012-04-11 10:54:22 -05:00
  • aa6633b027 Complete the lists of error codes that repmgr can return in the README.rst Jaime Casanova 2012-04-11 10:38:22 -05:00
  • c3bffce379 Run astyle to format code before tagging the release Jaime Casanova 2012-04-11 10:35:37 -05:00
  • 78aea00a6d Avoid to show what segments are needed for this backup if the rsync failed Jaime Casanova 2012-04-11 10:34:38 -05:00
  • b5b2f93f7e Merge branches 'master' and 'async' Jaime Casanova 2011-12-02 00:28:17 -05:00
  • 9d03d4a254 After checking that master is alive, is_pgup() should return not keep checking forever. Jaime Casanova 2011-12-01 23:58:12 -05:00
  • 3b2ccc5b78 Add a master_response_timeout parameter and use it to limit the amount of time we spent a reponse from master before declaring the failure. Also, change is_pgup() so it use PQsendQuery() instead of PQexec to execute the check of master Jaime Casanova 2011-12-01 01:20:33 -05:00
  • 91601204b5 Remove last argument from log_err, left in commit 9b8fb7e960. Also rephrase the sentence Jaime Casanova 2011-11-28 17:26:19 -05:00
  • 89a1e2bcbd Not even consider old master as an option in failover Jaime Casanova 2011-11-27 19:17:59 -05:00
  • 7077a7c68f Add -w option to pg_ctl commands so we wait until command is finish. Or at least, we try. By default, after 60 seconds pg_ctl just return. This make useless to wait ourselves after pg_ctl start of witness so remove the sleep Jaime Casanova 2011-11-27 18:28:55 -05:00
  • 9b8fb7e960 Remove last argument from log_err, left in commit 55c7ea4b5e. Also rephrase the sentence Jaime Casanova 2011-11-25 14:59:29 -05:00
  • 55c7ea4b5e Fix a wrong message. It was saying the problem is the version of the PostgreSQL server while it actually is because the MASTER REGISTER command was running on a standby node Jaime Casanova 2011-11-10 09:30:42 -05:00
  • c91ddc2f5e Fix a wrong message. It was saying the problem is the version of the PostgreSQL server while it actually is because the MASTER REGISTER command was running on a standby node Jaime Casanova 2011-11-10 09:30:42 -05:00
  • 72f74dd7a7 Fix a typo introduced in commit 94c9c3a5c6 Jaime Casanova 2011-11-03 12:54:55 -05:00
  • 0240cb2bfb Fix a typo introduced in commit cb764b180d Jaime Casanova 2011-11-03 12:50:51 -05:00
  • 2e64028f26 Add the improvement of the view repl_status to the history Jaime Casanova 2011-10-20 23:26:41 -05:00
  • 27396f462a Add strnlen on platforms that don't have it, such as OS X Greg Smith 2011-10-20 17:04:29 -05:00
  • 901d07fa92 Improve performance of the repl_status view Jaime Casanova 2011-10-20 23:20:03 -05:00