Re: should the postgres user have a password?

From: Scott Marlowe <smarlowe(at)g2switchworks(dot)com>
To: Anton Melser <melser(dot)anton(at)gmail(dot)com>
Cc: Postgresql <pgsql-general(at)postgresql(dot)org>
Subject: Re: should the postgres user have a password?
Date: 2007-06-07 18:14:57
Message-ID: 46684B21.4070709@g2switchworks.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Anton Melser wrote:
> Hi,
> I have never given postgres a password before, but one of my clients
> put one on his postgres user - I suppose so he could use the postgres
> user from phppgadmin (not my choice !).
> But now I can't see how to get my backup scripts to work... can I put
> the password for tools like pg_dumpall (or psql, or whatever) on the
> CL. There is no option in the docs...
> Would it be better to remove the password (if so, any pointers, I
> couldn't find that either!) and make postgres only able to connect via
> pipes?
> Thanks again,
> Anton
> ps. I did google but obviously couldn't find the right combo of
> keywords...

ALso, you can create a user for backups, give them superuser powers, and
make an entry in your pg_hba.conf file for that user from a specific
machine / IP can connect without a password.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Sergei Shelukhin 2007-06-07 18:20:20 Re: insane index scan times
Previous Message codeWarrior 2007-06-07 18:14:14 Re: querying the age of a row