Re: Authenticating user `postgres' - Mailing list pgsql-general

From Arcady Genkin
Subject Re: Authenticating user `postgres'
Date
Msg-id r1z7kukfefy.fsf@bashful.cdf.toronto.edu
Whole thread Raw
In response to Authenticating user `postgres'  (Arcady Genkin <a.genkin@utoronto.ca>)
List pgsql-general
Alvaro Herrera <alvherre@atentus.com> writes:

> > The problem I'm having is that I want local UNIX user `postgres', who
> > is the database superuser, to be able to connect to any database
> > without a password.  I want, for example, to be able to run a cronjob
> > like "pg_dumpall >backup", but I can't do that with my current setup.
>
> You have at least two possible ways to solve this:
> 1. use the PGPASSWORD environment variable to hold the postgres
> password.

But what if user 'postgres' has different passwords in different
databases?  Or is it only template[12] that matter for pg_dumpall?

> 2. use a "ident" entry in pg_hba.conf to authorize only localhost.

But I only want UNIX user *postgres* to be able to connect without
password.

> I remember there being a "match" auth-type...

It isn't in the docs...
http://www.postgresql.org/idocs/index.php?client-authentication.html

Thank you for your reply,
--
Arcady Genkin
i=1; while 1, hilb(i); i=i+1; end

pgsql-general by date:

Previous
From: Martijn van Oosterhout
Date:
Subject: Re: How to make a REALLY FAST db server?
Next
From: Martijn van Oosterhout
Date:
Subject: Re: Performance question (stripped down the problem)