Skip to content

Commit 12a09e1

Browse files
committed
Fix server version request in basebackup.sh
1 parent 32fe3ca commit 12a09e1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

postgres-appliance/scripts/basebackup.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,8 @@ else
9595
receivewal_pid=$(cat "$WAL_FAST/receivewal.pid")
9696
fi
9797

98-
PGVER=$(psql -d "$CONNSTR" -tAc "SELECT pg_catalog.current_setting('server_version_num')::int/10000" || echo 0)
98+
echo "CONNSTR: $CONNSTR"
99+
PGVER=$(psql "$CONNSTR" -tAc "SELECT pg_catalog.current_setting('server_version_num')::int/10000" || echo 0)
99100
if [[ $PGVER -ge 15 ]]; then
100101
PG_BASEBACKUP_OPTS+=("--compress=server-lz4")
101102
fi

0 commit comments

Comments
 (0)