PLUGIN=psql # from psql(1): psql returns 2 if the connection to the server went bad and # the session was not interactive EXIT_IGNORE=2 PGHOST=db.example.com PGDATABASE=exampledb PGSSLMODE=verify-full PGSSLROOTCERT=/etc/ssl/certs/examplerootcert PGUSER=exampleuser PGPASSWORD=foobar # beware: will be readable from /proc//environ, better: PGPASSFILE=/path/to/.pgpass TABLE=known_hosts