I am using pgbouncer on redshift cluster. When I use pgbouncer on Postgres I can login into pgbouncer instance using psql -h localhost -p xxxx pgbouncer
.
But how do I login into pgbouncer setup for redshift? pgbouncer is running on an ec2 instance whereas reshift is managed by aws.
I tried accessing psql using both localhost (where pgbouncer is running) and redshift endpoint. Any idea on how to access pgbouncer instance, which is setup for redshift?
[ec2-user@xxxx ~]$ psql -h localhost -p 5439 -U admin pgbouncer
psql: ERROR: not allowed
ERROR: not allowed
[ec2-user@xxxx pgbouncer]$ psql -h xxxxxxxx.us-east-2.redshift.amazonaws.com -p 5439 -U admin pgbouncer
Password for user admin:
psql: FATAL: database "pgbouncer" does not exist