0

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

Lenin
  • 1
  • 1
  • 1

1 Answers1

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

Lenin
  • 1
  • 1
  • 1