pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andrew Sullivan <ajs@crankycanuck.ca>
To: pgsql-general@postgresql.org
To: pgsql-admin@postgresql.org
Subject: Re: [GENERAL] FW: backup using pg_dump  postgreSQL 8.3.8
Date: Wed, 9 Mar 2011 09:48:10 -0500
Message-ID: <20110309144810.GP32629@shinkuro.com> (raw)
In-Reply-To: <10E646CF2170984794256AC2DD2C065C6BA882@Mcw-BS-Mail.mpdc.mcw.co.il>
References: <10E646CF2170984794256AC2DD2C065C6BA882@Mcw-BS-Mail.mpdc.mcw.co.il>

On Wed, Mar 09, 2011 at 03:58:20PM +0200, Sandy Test wrote:
> 
> We want to be able to run a nightly backup using the pg_dump command.
> 
> Unfortunately, even with the pg_hba.conf fix of adding host postgres ...
> trust, 
> 
> It still asks for a password.

pg_hba sometimes surprises people because of its matching rules.  If
there's another entry that matches before the explicit postgres entry,
that's the rule you're going to get:

    The first record with a matching connection type, client address,
    requested database, and user name is used to perform
    authentication. There is no "fall-through" or "backup": if one
    record is chosen and the authentication fails, subsequent records
    are not considered. If no record matches, access is denied.

(http://www.postgresql.org/docs/9.0/interactive/auth-pg-hba-conf.html).
Are you sure that's not your problem.  (It always is for me, and I
always make this mistake at least once per installation, even after
many years.)

A

-- 
Andrew Sullivan
ajs@crankycanuck.ca



view thread (6+ messages)  latest in thread

Message-ID: <20110309144810.GP32629@shinkuro.com>
Permalink:  ../20110309144810.GP32629@shinkuro.com/
Also on:    postgresql.org/message-id/20110309144810.GP32629@shinkuro.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: ajs@crankycanuck.ca, pgsql-general@postgresql.org
  Subject: Re: [GENERAL] FW: backup using pg_dump  postgreSQL 8.3.8
  In-Reply-To: <20110309144810.GP32629@shinkuro.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox