You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
proxysql/test/tap/noise/noise_pgsql_poller.sh

15 lines
198 B

#!/bin/bash
HOST=$1
PORT=$2
USER=$3
PASS=$4
INTERVAL=${5:-0.5}
export PGPASSWORD=$PASS
while true; do
psql -h $HOST -p $PORT -U $USER -c "SELECT 1;" > /dev/null 2>&1
sleep $INTERVAL
done