Commit Graph

  • c3595ad89e Specify that we can use -f option to indicate where the repmgr.conf is Jaime Casanova 2010-10-21 01:15:21 -05:00
  • ff511f19b4 Remove the second --port parameter, we now use repmgr.conf for get conninfo of the standby Jaime Casanova 2010-10-21 01:04:23 -05:00
  • 14ae59c6b2 Add a function that checks the parameters based on the action. Refactor some actions and use repl_nodes to get connections to master. Jaime Casanova 2010-10-21 00:48:04 -05:00
  • cd287f923a I failed to add the schema "repmgr_%s" in all places where the repl_* tables are used. Jaime Casanova 2010-10-18 09:34:14 -05:00
  • 378bdd7bd4 Add MASTER REGISTER and STANDBY REGISTER commands. Jaime Casanova 2010-10-18 02:21:55 -05:00
  • 6779a96b0b The short option for --force is now -F, because i will use the other to indicate a config file. also for simetry with repmgrd Jaime Casanova 2010-10-13 14:54:09 -05:00
  • 7dce793882 Add a --force option to upgrade an existing PostgreSQL instalation. This could be useful, for readding recently failed nodes. Jaime Casanova 2010-10-08 02:55:52 -05:00
  • d42f3e25f4 Fix a typo in the last commit that show the right directory in error messages Jaime Casanova 2010-10-07 00:29:10 -05:00
  • f5e95dd46a Exclude pid files from standby clone Jaime Casanova 2010-10-06 01:04:30 -05:00
  • 172caf8968 When the directory for a tablespace cannot be created or exists but is not empty, it was sending the message using dest_dir instead. Jaime Casanova 2010-10-05 21:15:35 -05:00
  • 61687855bb improve documentation, also add CREATE DATABASE and CREATE USER commands to repmgr.sql Jaime Casanova 2010-10-03 17:11:56 -05:00
  • d1d1232bef Add signals to repmgrd and teach it to clean things up when signaled before exit Jaime Casanova 2010-10-03 15:52:49 -05:00
  • 420edca4d1 Merge branch 'master' of git.2ndquadrant.it:repmgr Jaime Casanova 2010-10-01 14:46:17 -05:00
  • 5cd9e3957c A few changes from repmgrd and improve the SQL of the repl_status view in order to actually show something useful Jaime Casanova 2010-10-01 02:26:39 -05:00
  • 863a3fab53 A few changes from repmgrd and improve the SQL of the repl_status view in order to actually show something useful Jaime Casanova 2010-10-01 02:26:39 -05:00
  • 533a4e31a0 Copy tablespaces locations separately Jaime Casanova 2010-10-01 00:43:51 -05:00
  • 5617a75741 Create subdirectories $PGDATA/global and $PGDATA/pg_xlog Jaime Casanova 2010-09-30 21:17:19 -05:00
  • 8408e3a551 A few fixes product of Cedric Villemain's review Jaime Casanova 2010-09-30 19:43:13 -05:00
  • dcc7c4492c Move configuration files and global/pg_control separately from data_directory Jaime Casanova 2010-09-30 14:07:01 -05:00
  • 4660c4ea13 There was a segfault because of the strcpy (seems rather obvious now) Reported by: Cedric Villemain Fixed by me Jaime Casanova 2010-09-30 12:15:43 -05:00
  • 72fe188b1c Fix sql script, specially the view that was lacking of an alias Reported and patch by: Cedric Villemain Jaime Casanova 2010-09-30 10:44:13 -05:00
  • d572b0e4ca Add const modifier to the prototype of the function get_cluster_size, to allow compilation Jaime Casanova 2010-09-30 09:06:45 -05:00
  • 12916315eb A few more bugs revealed in tests. Jaime Casanova 2010-09-29 06:45:22 -05:00
  • 3b8e8183cc Changes when trying to compile: - Fix Makefile to include check_dir.c - Add function mkdir_p that was taken from initdb.c - Replace some strcpy for assignment to const char * to keep compiler quite - Add STANDBY_NORMAL to initialize action - fix typos and add headers needed to compile Jaime Casanova 2010-09-29 05:13:23 -05:00
  • c809558c3f Merge branch 'master' of git.2ndquadrant.it:repmgr Jaime Casanova 2010-09-28 17:33:09 -05:00
  • ae628d0527 Changes in repmgr are: - Add checks to test if the directories are useful for us (basically the checks follow the same approach as initdb does) - Add connection parameters - Better use of rsync - Some more clean up of code Jaime Casanova 2010-09-28 17:23:15 -05:00
  • 44a3548c2e Add connection options and a lot of validations, i still have to complete the use of the connection options but the program should still be usable. postgres 2010-09-22 04:40:43 -05:00
  • 93417715d4 Add docs, fix Makefile and fix some bugs and typos postgres 2010-09-17 07:14:52 -05:00
  • 707c501b24 Add repmgr client command. postgres 2010-09-15 15:38:54 -05:00
  • 98d7471d15 Change the name from repmgr to repmgrd. this is a daemon that will do the monitoring. postgres 2010-09-14 20:42:28 -05:00
  • 362f931355 Apply log should be pg_xlog_receive_location() - pg_xlog_replay_location(). Also remove get_last_xlog_replay_timestamp() function and the sql_utils dir, we can readded later if we need. We don't need the column last_wal_standby_timestamp in repl_status, so remove it postgres 2010-09-14 10:08:45 -05:00
  • d728ef0eef Fix some typos and replace the variable Inrecovery with the function RecoveryInProgress() in the function sql_utils/repmgr_wrapper_funcs.c:last_xlog_replay_timestamp() postgres 2010-09-14 03:05:28 -05:00
  • 7ec3485811 Lag is now monitored in bytes, we show replication lag and applied lag postgres 2010-09-14 01:40:59 -05:00
  • 7ad17f7f48 Dropping phase2 from repmgr, it now is an independent tool called pg_blender postgres 2010-09-13 10:58:39 -05:00
  • 39b452e259 Test change to see if I have access to repository Simon Riggs 2010-09-08 20:54:58 +01:00
  • 9f61ea6c5c In 9.0beta3 the function GetLatestXLogTime() was removed and replaced by GetLatestXTime() but this function cannot be called from external programs. Instead now we are using GetXLogReceiptTime() which tells us what was the last time we got a WAL record by streaming or file. postgres 2010-07-30 11:39:29 -05:00
  • a12e719259 Initial commit postgres 2010-06-17 10:43:35 -05:00