Adding pqsl to the base image for remote postgres debugging

I’ve got a remote RDS postgres instance that I can connect to locally but having issues doing so from my glitch app. It would help with debugging if I could test out the remote connection from my project console with psql -h < RDS PostgreSQL url> -p 5432 --username <master user> -d <db name> and see if it returns the same thing as my local machine.

would this be possible?