mirror of
https://github.com/gadgethd/ukmesh.git
synced 2026-10-20 05:00:17 +00:00
scripts: harden read-only evidence runner (PGAPPNAME + idle-tx timeout)
This commit is contained in:
@@ -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"
|
||||
'
|
||||
|
||||
Reference in New Issue
Block a user