0

I'm trying to write shell script to avoid entering password every time while login to psql.

1

1 Answer 1

0

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.