We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 32fe3ca commit 12a09e1Copy full SHA for 12a09e1
postgres-appliance/scripts/basebackup.sh
@@ -95,7 +95,8 @@ else
95
receivewal_pid=$(cat "$WAL_FAST/receivewal.pid")
96
fi
97
98
-PGVER=$(psql -d "$CONNSTR" -tAc "SELECT pg_catalog.current_setting('server_version_num')::int/10000" || echo 0)
+echo "CONNSTR: $CONNSTR"
99
+PGVER=$(psql "$CONNSTR" -tAc "SELECT pg_catalog.current_setting('server_version_num')::int/10000" || echo 0)
100
if [[ $PGVER -ge 15 ]]; then
101
PG_BASEBACKUP_OPTS+=("--compress=server-lz4")
102
0 commit comments