Update comments in SQL upgrade file

This commit is contained in:
Ian Barwick
2016-02-01 13:49:58 +09:00
parent d21f506614
commit 3ed87084d0

View File

@@ -2,32 +2,34 @@
* Update a repmgr 3.0 installation to repmgr 3.1 * Update a repmgr 3.0 installation to repmgr 3.1
* ---------------------------------------------- * ----------------------------------------------
* *
* 1. Stop any running repmgrd instances * The new repmgr package should be installed first. Then
* 2. On the master node, execute the SQL statements listed below, * carry out these steps:
* taking care to identify the master node and any inactive *
* nodes * 1. (If repmgrd is used) stop any running repmgrd instances
* 3. Restart repmgrd (being sure to use repmgr 3.1) * 2. On the master node, execute the SQL statements listed below
* 3. (If repmgrd is used) restart repmgrd
*/ */
/* /*
* Set the search path to the name of the schema used by * If your repmgr installation is not included in your repmgr
* your repmgr installation * user's search path, please set the search path to the name
* (this should be "repmgr_" + the cluster name defined in * of the repmgr schema to ensure objects are installed in
* 'repmgr.conf') * the correct location.
*
* The repmgr schema is "repmgr_" + the cluster name defined in
* 'repmgr.conf'.
*/ */
-- SET search_path TO 'name_of_repmgr_schema'; -- SET search_path TO 'name_of_repmgr_schema';
BEGIN; BEGIN;
-- We have this new view which gives the upstream node information when -- New view "repl_show_nodes" which also displays the server's
-- checking on the nodes table -- upstream node
CREATE VIEW repl_show_nodes AS CREATE VIEW repl_show_nodes AS
SELECT rn.id, rn.conninfo, rn.type, rn.name, rn.cluster, SELECT rn.id, rn.conninfo, rn.type, rn.name, rn.cluster,
rn.priority, rn.active, sq.name AS upstream_node_name rn.priority, rn.active, sq.name AS upstream_node_name
FROM repl_nodes as rn LEFT JOIN repl_nodes AS sq ON sq.id=rn.upstream_node_id; FROM repl_nodes as rn LEFT JOIN repl_nodes AS sq ON sq.id=rn.upstream_node_id;
COMMIT; COMMIT;