Commit Graph

11 Commits

Author SHA1 Message Date
Jaime Casanova
14ae59c6b2 Add a function that checks the parameters based on the action.
Refactor some actions and use repl_nodes to get connections to
master.
2010-10-21 00:48:04 -05:00
Jaime Casanova
cd287f923a I failed to add the schema "repmgr_%s" in all places where the repl_*
tables are used.
2010-10-18 09:34:14 -05:00
Jaime Casanova
378bdd7bd4 Add MASTER REGISTER and STANDBY REGISTER commands. 2010-10-18 02:21:55 -05:00
Jaime Casanova
61687855bb improve documentation, also add CREATE DATABASE and CREATE USER
commands to repmgr.sql
2010-10-03 17:11:56 -05:00
Jaime Casanova
d1d1232bef Add signals to repmgrd and teach it to clean things up when
signaled before exit
2010-10-03 15:52:49 -05:00
Jaime Casanova
5cd9e3957c A few changes from repmgrd and improve the SQL of the repl_status
view in order to actually show something useful
2010-10-01 14:44:08 -05:00
Jaime Casanova
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
2010-09-29 05:13:23 -05:00
Jaime Casanova
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

Changes in repmgrd are:
- Add a parameter to allow the user specify an repmgr.conf
- Change the name of the repl_status table for repl_monitor
- Create a repl_status view that also shows lag in time
- Some more clean up of code
2010-09-28 17:28:56 -05:00
postgres
93417715d4 Add docs, fix Makefile and fix some bugs and typos 2010-09-17 07:14:52 -05:00
postgres
707c501b24 Add repmgr client command. 2010-09-15 15:38:54 -05:00
postgres
98d7471d15 Change the name from repmgr to repmgrd. this is a daemon
that will do the monitoring.
2010-09-14 20:42:28 -05:00