How can I call psql so that it doesn\'t prompt for a password?
This is what I have:
psql -Umyuser < myscript.sql
8 years later...
On my mac, I had to put a line into the file ~/.pgpass like:
~/.pgpass
::::
Also see: https://www.postgresql.org/docs/current/libpq-pgpass.html https://wiki.postgresql.org/wiki/Pgpass