Running the PostgreSQL CLI (psql) through a bash script, as the postgres user invokes the password request, although I can start it manually without a password. When I try to put -w in a script, this error occurs:
psql: fe_sendauth: password not specified
Is it possible to run psql automatically without a password?
source
share