I'm trying to write shell script to avoid entering password every time while login to psql.
1 Answer
I found the answer from here & worked for me --> How to use psql with no password prompt?
PGPASSWORD=YOUR_PASSRORD psql -h YOUR_PG_HOST -U YOUR_USER_NAME