From 92292b0a9424af7040af2accd88711ca1ecfef25 Mon Sep 17 00:00:00 2001 From: Jehan-Guillaume de Rorthais Date: Fri, 3 Sep 2021 16:34:16 +0200 Subject: [PATCH] Fix agent version in ocf_meta_data --- script/pgsqlms | 58 +++++++++++++++++++++++++++++++++----------------- 1 file changed, 38 insertions(+), 20 deletions(-) diff --git a/script/pgsqlms b/script/pgsqlms index 2fb6db6..8775af3 100755 --- a/script/pgsqlms +++ b/script/pgsqlms @@ -1097,12 +1097,15 @@ sub ocf_meta_data { print qq{ - 1.0 + $VERSION - Resource script for PostgreSQL in replication. It manages PostgreSQL servers using streaming replication as an HA resource. + Resource script for PostgreSQL in replication. It manages PostgreSQL + servers using streaming replication as an HA resource. - Manages PostgreSQL servers in replication + + Manages PostgreSQL servers in replication + @@ -1114,7 +1117,8 @@ sub ocf_meta_data { - Path to the directory storing the PostgreSQL binaries. The agent uses psql, pg_isready, pg_controldata and pg_ctl. + Path to the directory storing the PostgreSQL binaries. The agent + uses psql, pg_isready, pg_controldata and pg_ctl. Path to the PostgreSQL binaries @@ -1130,17 +1134,23 @@ sub ocf_meta_data { - Path to the directory set in data_directory from your postgresql.conf file. This parameter - has the same default than PostgreSQL itself: the pgdata parameter value. Unless you have a - special PostgreSQL setup and you understand this parameter, ignore it. + Path to the directory set in data_directory from your + postgresql.conf file. This parameter has the same default than + PostgreSQL itself: the pgdata parameter value. Unless you have a + special PostgreSQL setup and you understand this parameter, + ignore it. - Path to the directory set in data_directory from your postgresql.conf file + + Path to the directory set in data_directory from your + postgresql.conf file + - Host IP address or unix socket folder the instance is listening on. + Host IP address or unix socket folder the instance is listening + on. Instance IP or unix socket folder @@ -1156,25 +1166,31 @@ sub ocf_meta_data { - Maximum lag allowed on a standby before forbidding any promotion on it. The calculation - is based on the difference between the current LSN on the primary and the LSN - written on the standby. - This parameter must be a valid positive number as described in PostgreSQL documentation. + Maximum lag allowed on a standby before forbidding any promotion + on it. The calculation is based on the difference between the + current LSN on the primary and the LSN written on the standby. + This parameter must be a valid positive number as described in + PostgreSQL documentation. See: https://www.postgresql.org/docs/current/static/sql-syntax-lexical.html#SQL-SYNTAX-CONSTANTS-NUMERIC - Maximum write lag before we mark a standby as inappropriate to promote + + Maximum write lag before we mark a standby as inappropriate to + promote + - Path to the recovery.conf template. This file is simply copied to \$PGDATA - before starting the instance as standby. + Path to the recovery.conf template. This file is simply copied + to \$PGDATA before starting the instance as standby. ONLY for PostgreSQL 11 and bellow. This parameter is IGNORED for - PostgreSQL 12 and higher. The cluster will refuse to start if a template - file is found. + PostgreSQL 12 and higher. The cluster will refuse to start if a + template file is found. - Path to the recovery.conf template for PostgreSQL 11 and older. + + Path to the recovery.conf template for PostgreSQL 11 and older. + @@ -1185,7 +1201,9 @@ sub ocf_meta_data { postgresql.conf file is not in the data directory (PGDATA), eg.: "-c config_file=/etc/postgresql/9.3/main/postgresql.conf". - Additionnal arguments given to the postgres process on startup. + + Additionnal arguments given to the postgres process on startup. +