Re: [GENERAL] FW: backup using pg_dump postgreSQL 8.3.8

From: Andrew Sullivan <ajs(at)crankycanuck(dot)ca>
To: pgsql-general(at)postgresql(dot)org, pgsql-admin(at)postgresql(dot)org
Subject: Re: [GENERAL] FW: backup using pg_dump postgreSQL 8.3.8
Date: 2011-03-09 14:48:10
Message-ID: 20110309144810.GP32629@shinkuro.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin pgsql-general

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(at)crankycanuck(dot)ca

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Adrian Klaver 2011-03-09 15:27:48 Re: [GENERAL] FW: backup using pg_dump postgreSQL 8.3.8
Previous Message Scott Marlowe 2011-03-09 14:38:01 Re: Advise on dropping TEMP table/schema for my use case

Browse pgsql-general by date

  From Date Subject
Next Message Andy Colson 2011-03-09 14:49:06 Re: Using bytea field...
Previous Message Alexander Farber 2011-03-09 14:47:59 Re: Copying data from one table to another - how to specify fields?