Skip to content
This repository was archived by the owner on Jul 6, 2021. It is now read-only.

Commit ed82ade

Browse files
committed
Adjust _PSQL_NO_TIMEOUT with -h is used.
This small change completes defining _PSQL_NO_TIMEOUT. See merge request postgres-ai/postgres-checkup!309
2 parents 7a99251 + 54156ba commit ed82ade

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

checkup

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -829,11 +829,12 @@ host_pre_start_checks() {
829829
# use local psql and connect to remote postgres without ssh
830830
local re="127\.0"
831831
if [[ "${HOST}" =~ $re || "${HOST}" = "localhost" ]]; then
832-
# keep _PSQL as is, use UNIX domain socket for psql
832+
# keep _PSQL and _PSQL_NO_TIMEOUT as is, use UNIX domain socket for psql
833833
true
834834
else
835835
# use TCP for psql
836836
export _PSQL="${_PSQL} -h ${HOST}"
837+
export _PSQL_NO_TIMEOUT="${_PSQL_NO_TIMEOUT} -h ${HOST}"
837838
fi
838839

839840
export SSH_SUPPORT="false"
@@ -843,6 +844,7 @@ host_pre_start_checks() {
843844
dbg "CHECK_HOST_CMD: '${CHECK_HOST_CMD}'"
844845
dbg "NATIVE_HOSTNAME: '${NATIVE_HOSTNAME}'"
845846
dbg "_PSQL: '${_PSQL}'"
847+
dbg "_PSQL_NO_TIMEOUT: '${_PSQL_NO_TIMEOUT}'"
846848
}
847849

848850
#######################################

0 commit comments

Comments
 (0)