PostgreSQL: non-interactive input password
- ~/.pgpass
hostname:port:database:username:password
chmod 0600 ~/.pgpass -
PGPASSWORD=password psql --host=host --port=5432 --username postgres postgres
hostname:port:database:username:password
chmod 0600 ~/.pgpass
PGPASSWORD=password psql --host=host --port=5432 --username postgres postgres