postgres-ai / postgres-checkup

Postgres Health Check and SQL Performance Analysis. :point_right: THIS IS A MIRROR OF https://gitlab.com/postgres-ai/postgres-checkup
GNU Affero General Public License v3.0
169 stars 14 forks source link

Fix bash 4 unbound variable in `bash -c`, fix UNIX socket with psql and localhost #140

Closed Nastradamus closed 5 years ago

Nastradamus commented 5 years ago

If we can't connect to local ssh, we fail with an error in Bash 4:

dmius@test:~/postgres-health-check$ ./check -p 5432 -h localhost --username test --project test --dbname test -e 1
./check: line 344: pgpas_subst: unbound variable

Also, psql must connect to localhost via UNIX socket.