Commit Graph

  • f0e609bcd4 Add strnlen on platforms that don't have it, such as OS X Greg Smith 2011-10-20 17:04:29 -05:00
  • cb764b180d Let the clone happen in a session with synchronous_commit off. This is because in pg 9.1 the default configuration can easily allow sync rep to be activated even if no standby is present and will block pg_start_backup() and pg_stop_backup() in that case. Jaime Casanova 2011-10-03 14:04:27 -05:00
  • 94c9c3a5c6 Let the clone happen in a session with synchronous_commit off. This is because in pg 9.1 the default configuration can easily allow sync rep to be activated even if no standby is present and will block pg_start_backup() and pg_stop_backup() in that case. Jaime Casanova 2011-10-03 13:56:31 -05:00
  • 3af5243bcc Fix rsync return code test Cédric Villemain 2011-03-28 18:37:41 +02:00
  • 85bbae462a Add --ignore-rsync-warning to README Cédric Villemain 2011-03-28 16:46:47 +02:00
  • 14e49d41c2 Add --ignore-rsync-warning command line option Cédric Villemain 2011-03-28 16:26:48 +02:00
  • 65cf045a63 Fix a few problems introduced in 020e17b059 while adding standby_name Jaime Casanova 2011-08-09 02:01:00 -05:00
  • 3d53661d97 Fix a typo introduced in the commit about standby_name (020e17b059) Jaime Casanova 2011-08-09 01:14:50 -05:00
  • 7b3a9cbbe4 Rename standby_name configuration option as node_name per gripe by Cedric Jaime Casanova 2011-08-05 00:02:48 -05:00
  • 276c947202 Add name to nodes and show it for the standby in repl_status. Jaime Casanova 2011-07-26 16:58:02 -05:00
  • 020e17b059 Add a new standby_name parameter that, when provided in repmgr.conf, is included in the primary_conninfo as application_name... This is a simple first step towards making repmgr works fine with 9.1 and sync standbys Jaime Casanova 2011-07-26 16:43:28 -05:00
  • 10817ecffc Add "witness" as a node role in CLUSTER SHOW Jaime Casanova 2011-08-08 13:29:26 -05:00
  • f26e37c087 Merge pull request #2 from 2ndquadrant-it/master Jaime2ndQuadrant 2011-08-08 11:10:13 -07:00
  • 61c31eeb0c Added function to show nodes with actual roles: repmgr cluster show Carlo Ascani 2011-08-08 18:39:51 +02:00
  • 0b5d2418df Merge pull request #1 from 2ndquadrant-it/master Jaime2ndQuadrant 2011-08-05 11:03:54 -07:00
  • f44037088b Added function "write_primary_conninfo" which now adds the username to the primary_conninfo parameter in recovery.conf Gabriele Bartolini 2011-08-01 13:22:04 +02:00
  • e05dd729f8 Fix a typo in documentation Carlo Ascani 2011-08-05 00:15:13 -05:00
  • ab8d2673dc Remove useless second parameter from create_recovery_file() per gripe by Gabriele Jaime Casanova 2011-08-04 17:45:28 -05:00
  • 28c5ac3d91 Make is_standby() and is_witness() work the same way, actually is_standby() can show the segmentation fault problem but for code clearity Jaime Casanova 2011-07-26 18:36:27 -05:00
  • c983fdf83c Fix a possible double free that would cause a segfault in checkNodeConfiguration() Carlo Ascani 2011-07-26 18:22:06 -05:00
  • 158214acae Only log that we have restored the connection when that already happens, this fix a flood in logs that make them unnecessarily big Carlo Ascani 2011-07-26 18:16:22 -05:00
  • 04290c1f60 Another pass reviewing code: - remove a duplicate check for ssh connection and just exit if we can't connect to the remote host. stop_backup is only needed if pg_start_backup() has been already called - remove a new connection to master in stop_backup label, AFAIC we hadn't close the one we already opened - add a lot of PQfinish(), a few PQclear() and adjust code to what we used to do in 1.x Jaime Casanova 2011-07-26 16:14:44 -05:00
  • cedc5e20fb Add a check to ensure 'hot_standby=on' on master. While this parameter doesn't have an effect here it will be a reminder for users, besides will reduce things user have to do on the standby Jaime Casanova 2011-07-26 16:12:51 -05:00
  • b61ac86b5f Move repmgr_update_standby_location() and repmgr_get_last_standby_location() functions to repmgr schema. This will be important when we want to create this as an extension, so better make it be in the right place from day 1. Jaime Casanova 2011-07-26 16:12:11 -05:00
  • 64da72b48b repl_monitor.last_wal_standby_location should accept nulls because of the witness Jaime Casanova 2011-07-26 16:11:26 -05:00
  • c4778a83c5 Be consistent in the use of sqlquery_snprintf() for query strings, which was not used in the new code. Also add a few "newline" characters in some messages, and other minutia. Jaime Casanova 2011-07-19 05:02:51 -05:00
  • 4d26e4d21e Redefining repl_status view to improve performance, also add an index on repl_monitor to speed up even more the view. Jaime Casanova 2011-06-13 11:58:43 -05:00
  • 3f4ff5a862 A "HEAD" word remaining from a merge conflict was accidentally left in... removing it Jaime Casanova 2011-06-10 21:16:07 -05:00
  • 1d05467df1 README additions and improvements Simon Riggs 2011-06-07 11:37:09 +01:00
  • 15ba3342aa Remove whitespace Simon Riggs 2011-06-07 11:12:58 +01:00
  • 3a950c9f8b Squashed commit of the following: Greg Smith 2011-06-07 01:42:15 -04:00
  • 43268f2345 Refactor more log messages to use "_" form Greg Smith 2011-06-07 01:17:41 -04:00
  • 8200b68cf7 Convert some remaining fprintf messages to logger Greg Smith 2011-06-07 00:50:46 -04:00
  • 06aecbf58a Fix copyright date on repmgr.sql Greg Smith 2011-06-07 00:46:16 -04:00
  • 367d0b1afa astyle fixes on logging change Greg Smith 2011-06-07 00:30:35 -04:00
  • e52f2e88a5 Update use of paranthesis in logging messages. Extracted portion of what was originally ceca9fa983c8dbde61a7a78da29a1e1871756d8c , due to be applied later. Greg Smith 2011-06-07 00:19:11 -04:00
  • 1bd8a703c8 Fix getopt for ignore-rsync-warning Cédric Villemain 2011-04-10 22:42:38 +02:00
  • 620f8090a3 Add test_ssh_connection Cédric Villemain 2011-05-09 22:39:21 +02:00
  • 534649eb03 Fix a message to only show when log_info is requested and the verbose flag is set. This is because it needs a calculation that is only done when the verbose flag is set, so if i have requested log INFO level but haven't set the flag it shows a null Jaime Casanova 2011-05-09 01:07:54 -05:00
  • 1e8b9e8960 Add a fallback_application_name parameter to conninfo to identify the connection if application_name is not set Jaime Casanova 2011-05-08 19:26:59 -05:00
  • c4ae5741a3 Fix getopt for ignore-rsync-warning Cédric Villemain 2011-04-10 22:42:38 +02:00
  • f824189692 Cleanup new ignore rsync warning feature. Closes gh-22. Greg Smith 2011-04-05 17:52:39 -04:00
  • 68b42d16c9 Merge commit '3ca0f2db06c9114c59e0846dda487cca9b1e85ff' Greg Smith 2011-04-05 17:26:33 -04:00
  • 3ca0f2db06 Fix unapplied astyle. Closes gh-26. Greg Smith 2011-04-05 17:21:48 -04:00
  • 235903e517 Fix rsync return code test Cédric Villemain 2011-03-28 18:37:41 +02:00
  • bf29601218 remove the exit on rsync error because it is handle by the caller Cédric Villemain 2011-03-28 17:08:22 +02:00
  • 02a3fbb303 Add --ignore-rsync-warning to README Cédric Villemain 2011-03-28 16:46:47 +02:00
  • b30398bf2a Add --ignore-rsync-warning command line option Cédric Villemain 2011-03-28 16:26:48 +02:00
  • e74e319e7a Applying indent style Cédric Villemain 2011-03-28 16:05:09 +02:00
  • d77186c904 Ignore error 24 from rsync (that could happen if we use a lot of temp tables for example). It only ignores that error if we are copying a directory (which means we are in pg_start_backup() and then ignore changes that happen due to concurrent access is fine). Jaime Casanova 2011-03-25 10:19:28 -05:00
  • 4c792c8013 Add TODO, update history for 1.1.0 release v1.1.0 Greg Smith 2011-03-09 15:27:29 -05:00
  • e7903a7971 Merge branch 'master' of git+ssh://git@git.2ndquadrant.it/git/repmgr Greg Smith 2011-03-03 09:27:18 -05:00
  • f372793114 Merge correction commit Greg Smith 2011-03-03 09:26:22 -05:00
  • 295a183d0b removing old code which is made invalid after merging the different branches by upstream trbs 2011-02-11 21:55:20 +01:00
  • c6693340c1 cleanup help and usage trbs 2011-03-02 16:52:50 +01:00
  • cc0c516810 added new lines to log messages trbs 2011-03-02 16:51:48 +01:00
  • 58ec43106e Options -U, -R and -p shouldn't be mandatory. Fix by checking if the string is empty before use. Jaime Casanova 2011-03-02 02:44:01 -05:00
  • 3e960286c7 Update history for 1.1.0-beta1 Greg Smith 2011-02-24 19:25:40 -05:00
  • bf0bbd747b Fix typos in some logging messages Greg Smith 2011-02-24 19:05:03 -05:00
  • 459f14b594 Document repmgrd's role on each type of node. Add logging (when run in verbose mode) showing what decisions repmgrd is making after it determines what type of node it is. Greg Smith 2011-02-24 18:58:03 -05:00
  • f928edf897 Improve parameter validation, logging, and error handling in repmgrd Greg Smith 2011-02-24 18:13:16 -05:00
  • c7b62003b2 Reorganize README to be easier to follow Greg Smith 2011-02-23 09:50:07 -05:00
  • 59b7b90169 Update README with better two-node example output Greg Smith 2011-02-23 09:08:08 -05:00
  • 3cdd6a57fd Add more info level logging around database activity Greg Smith 2011-02-23 08:42:49 -05:00
  • 5dcec5818f Update README with standard two-host examples Greg Smith 2011-02-23 08:42:06 -05:00
  • 9c6288993b Fix double free in standby clone Greg Smith 2011-02-23 07:26:39 -05:00
  • 2675101330 Make PGPASSWORD substitution in recovery.conf optional Greg Smith 2011-02-23 07:19:36 -05:00
  • 02daccd6e7 Wrap use of PQconnectdbParams, add proper error checking and logging when the connection fails. Greg Smith 2011-02-23 06:44:10 -05:00
  • 18ef5b3cf3 Convert more uses of fprintf to use logger Greg Smith 2011-02-23 05:59:09 -05:00
  • 3b2203c38c Make verbose command line option useful on top of the new logging infrastructure. Greg Smith 2011-02-23 05:29:29 -05:00
  • fee7da1ba7 Fix cast on WAL lag computation to (long long) Greg Smith 2011-02-22 07:43:02 -05:00
  • a98aec12e1 And one more round of astyle work Greg Smith 2011-02-15 00:57:12 -05:00
  • 757457ad85 Fix merge error that removed setting keywords Greg Smith 2011-02-15 00:55:50 -05:00
  • 45022debc6 Break out error codes, cleanup header files and HISTORY Greg Smith 2011-02-15 00:43:36 -05:00
  • f6618a01c7 Post-merge astyle run Greg Smith 2011-02-15 00:14:13 -05:00
  • 20af4ffc2c Merge commit '3ef1fa126d9c9b9ba3b29deab7f67218cdf7ce10' Greg Smith 2011-02-15 00:06:01 -05:00
  • 3ef1fa126d astyle run against Heroku code Greg Smith 2011-02-14 21:51:14 -05:00
  • ce06e6c8e0 Fix some mistakes in the history file Greg Smith 2011-02-10 19:34:50 -05:00
  • 0ad3d91e9c Cleanup history and credits Greg Smith 2011-02-10 18:57:50 -05:00
  • 0130420947 astyle cleanup run after recent merges Greg Smith 2011-02-10 18:55:51 -05:00
  • c3af4274ae Document astyle command line used to standardize code formatting Greg Smith 2011-02-10 18:55:17 -05:00
  • 5460517a43 Protect against duplicate header inclusion Greg Smith 2011-02-10 18:35:56 -05:00
  • 1d32133d49 Update all the copyrights to add 2011 Greg Smith 2011-02-10 18:33:02 -05:00
  • 1be62fa6b2 Fix use of "options" broken by recent merging Greg Smith 2011-02-10 18:26:44 -05:00
  • b62ad056f1 repmgrd: log restored connection only after a break Charles Duffy 2011-02-07 08:12:54 -06:00
  • ec30caef0f Merge commit '78b925ea54bb7a131e97c2f5d0a63f54ca58e26f' Greg Smith 2011-02-10 17:52:50 -05:00
  • 78b925ea54 Unify use of error codes across all exit statements Greg Smith 2011-02-10 17:49:34 -05:00
  • 7e7c45c61d exit with status 2 if manual work is needed during standby_clone Charles Duffy 2011-02-06 15:05:34 -06:00
  • a02cd43115 repmgr: treat directory access errors during standby clone as failure Charles Duffy 2011-02-06 15:04:19 -06:00
  • a67688f198 minor format string and comment fixes (add missing newlines, fix english usage, format string argument order) Charles Duffy 2011-02-06 15:03:26 -06:00
  • f74b806e4f repmgr: exit with nonzero status on obvious errors Charles Duffy 2011-02-06 15:01:40 -06:00
  • 657aa3013b avoid double free on repmgrd exit as master Charles Duffy 2011-02-06 21:58:30 -06:00
  • 8d2aff558d Update history with recent merges Greg Smith 2011-02-10 16:19:35 -05:00
  • 6e1306cfb2 Uses a switch to detect the log level Gabriele Bartolini 2010-12-30 22:07:34 +01:00
  • 308efba95e added explanations about logging Gabriele Bartolini 2010-12-30 19:12:35 +01:00
  • 556f256bb6 Now standby clone command accepts configuration file - for logging purposes only Gabriele Bartolini 2010-12-30 19:03:15 +01:00
  • 83eee2ed96 added some messages to the clone command Gabriele Bartolini 2010-12-30 15:15:45 +01:00
  • cb36aaddff - Added \n Gabriele Bartolini 2010-12-30 01:03:48 +01:00
  • 3146d2c676 fixed some bugs with standby clone Gabriele Bartolini 2010-12-30 00:59:39 +01:00
  • 3f1c6a5852 Removed any sprintf/strcpy call and use snprintf/strncpy - Fixed bug with tblspc_dir - added debug messages after every query Gabriele Bartolini 2010-12-30 00:31:51 +01:00