Update PostgreSQL version to PostgreSQL 16 in sample scripts.
authorBo Peng <pengbo@sraoss.co.jp>
Mon, 13 Nov 2023 13:26:21 +0000 (22:26 +0900)
committerBo Peng <pengbo@sraoss.co.jp>
Mon, 13 Nov 2023 13:27:17 +0000 (22:27 +0900)
src/sample/scripts/failover.sh.sample
src/sample/scripts/follow_primary.sh.sample
src/sample/scripts/pgpool_remote_start.sample
src/sample/scripts/recovery_1st_stage.sample
src/sample/scripts/replication_mode_recovery_1st_stage.sample
src/sample/scripts/replication_mode_recovery_2nd_stage.sample

index e8e60dc079cd7085e897c683236cec7f22cf2c38..11a8b96f7f54c3f3d2d1171b76de4c415fb56dac 100755 (executable)
@@ -31,7 +31,7 @@ NEW_MAIN_NODE_PGDATA="${10}"
 OLD_PRIMARY_NODE_HOST="${11}"
 OLD_PRIMARY_NODE_PORT="${12}"
 
-PGHOME=/usr/pgsql-15
+PGHOME=/usr/pgsql-16
 REPL_SLOT_NAME=${FAILED_NODE_HOST//[-.]/_}
 POSTGRESQL_STARTUP_USER=postgres
 SSH_KEY_FILE=id_rsa_pgpool
index 3edaf372afd393019708a081501be624d8a4808b..2a04e33cf4dba53d8eb354c7bc12d65346565f57 100755 (executable)
@@ -30,7 +30,7 @@ OLD_PRIMARY_NODE_ID="$8"
 NEW_PRIMARY_NODE_PORT="$9"
 NEW_PRIMARY_NODE_PGDATA="${10}"
 
-PGHOME=/usr/pgsql-15
+PGHOME=/usr/pgsql-16
 ARCHIVEDIR=/var/lib/pgsql/archivedir
 REPLUSER=repl
 PCP_USER=pgpool
index 6119e3e8a55e4d9023ba37c555f49cb7aefc3ca2..a5b84012639b0a7b5038e9e8b7f83c830d3400c1 100755 (executable)
@@ -6,7 +6,7 @@ set -o xtrace
 DEST_NODE_HOST="$1"
 DEST_NODE_PGDATA="$2"
 
-PGHOME=/usr/pgsql-15
+PGHOME=/usr/pgsql-16
 POSTGRESQL_STARTUP_USER=postgres
 SSH_KEY_FILE=id_rsa_pgpool
 SSH_OPTIONS="-o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -i ~/.ssh/${SSH_KEY_FILE}"
index 8b299709d18960b9d5e23040c7d3a22ae2dc47b8..a01b737855016399d9534b88edcb09b88bb1c477 100755 (executable)
@@ -11,7 +11,7 @@ DEST_NODE_ID="$5"
 DEST_NODE_PORT="$6"
 PRIMARY_NODE_HOST="$7"
 
-PGHOME=/usr/pgsql-15
+PGHOME=/usr/pgsql-16
 ARCHIVEDIR=/var/lib/pgsql/archivedir
 REPLUSER=repl
 REPL_SLOT_NAME=${DEST_NODE_HOST//[-.]/_}
index 300c30395f9bb51bd15948e3af177d59fb9142fc..e83f0e504450c8b52c9d81bcc261a5e9a04e6fd8 100755 (executable)
@@ -11,7 +11,7 @@ DEST_NODE_ID="$5"                  # node id of the DB node to be recovered
 DEST_NODE_PORT="$6"                # port number of the DB node to be recovered
 MAIN_NODE_HOST="$7"                # main node hostname
 
-PGHOME=/usr/pgsql-15
+PGHOME=/usr/pgsql-16
 ARCHIVEDIR=/var/lib/pgsql/archivedir
 REPLUSER=repl
 MAX_DURATION=60
index a4c0c360e3527847a1e498dae125eb466961b070..1d23ee9b55c12c72cb7bc07b09d900f5f373fb16 100755 (executable)
@@ -12,7 +12,7 @@ DEST_NODE_PORT="$6"                # port number of the DB node to be recovered
 MAIN_NODE_HOST="$7"                # main node hostname
 
 
-PGHOME=/usr/pgsql-15
+PGHOME=/usr/pgsql-16
 ARCHIVEDIR=/var/lib/pgsql/archivedir  # archive log directory
 POSTGRESQL_STARTUP_USER=postgres
 SSH_KEY_FILE=id_rsa_pgpool