Strange, but I was looking for this source of configuration, but could not find it.
I am currently using opensuse 11.3 with postgresql 9.
Each postgresql command line that I issue will ask for the current user password, such as psql, createdb, dropdb, and I have to enter the password of the current user (which is postgres) to make it work.
Running dropdb xxx && createdb xxx will ask for the password twice.
Please show me the light!
Thanks: -)
EDIT
Actually, I already work as a postgres user (user on my Linux), so I can psql without supplying a database password, but I still need to provide a password for postgres system users.
So, if there is a dbuser user in the database and im running psql as postgres (linux user), the password for the linux user (postgres) will be requested, not the dbuser password.
source share