diff --git a/scripts/health-latency-readonly-psql.sh b/scripts/health-latency-readonly-psql.sh index 3a56f17..a41bef8 100755 --- a/scripts/health-latency-readonly-psql.sh +++ b/scripts/health-latency-readonly-psql.sh @@ -2,6 +2,7 @@ # Read-only evidence queries on stdin; never migrations. No credentials emitted. set -euo pipefail docker exec -i meshcore-infra-timescaledb-1 sh -c ' - PGOPTIONS="-c default_transaction_read_only=on -c statement_timeout=30000 -c application_name=health-latency-audit" \ + PGAPPNAME=health-latency-audit \ + PGOPTIONS="-c default_transaction_read_only=on -c statement_timeout=30000 -c idle_in_transaction_session_timeout=15000" \ psql -X -v ON_ERROR_STOP=1 -P pager=off -U "$POSTGRES_USER" -d "$POSTGRES_DB" '