views:

59

answers:

1

Hello all,

I'm trying to enable root (Ubuntu 8.04) to use psql command without password prompt (for scripting purpose). Everything worked fine with PostGreSQL 8.3, but I migrate to PostGreSQL 8.4 and the login without password doesn't work anymore.

I've a correct .pgpass file (the same used for 8.3), the right of /root/.pgpass are 0600 but calling psql keep asking for a password.

NB : the PGPASSFILE variable is empty, so I assume that the .pgpass file is supposed to be used.

Any brilliant idea ?

Thanks

+1  A: 

Try to check if this works:

*:*:*:postgres:password_for_postgres_user

And then try:

VERBOSITY=verbose psql --no-password --user postgres

This question should probably be migrated to serverfault.com.

Tometzky
You are right it's more a server administration problem. The problem was that the server was installed right after postgres 8.3 and thus the installation make it run on the port 5433 instead of 5432. I fixed it by editing postgres.conf. Thanks !
Freddy