From: Tom Lane <tgl@sss.pgh.pa.us>
To: Laura Conrad <lconrad@laymusic.org>
Cc: pgsql-admin@postgresql.org
Subject: Re: How to restore from pg_dumpall output
Date: Thu, 13 Feb 2003 21:04:52 -0500
Message-ID: <3200.1045188292@sss.pgh.pa.us> (raw)
In-Reply-To: <874r78uvm1.fsf@debian.laymusic.org>
References: <874r78uvm1.fsf@debian.laymusic.org>
Laura Conrad <lconrad@laymusic.org> writes:
> pg_dumpall -p 8050 >/tmp/db.sql
> I then tried to restore (again as the postgres user), as documented in
> the pg_dumpall man page:
> psql -f /tmp/db.sql template1
> It does a few things, and then says:
> psql:/tmp/db.sql:16: \connect: FATAL 1: IDENT authentication
> failed for user "bostonre"
I believe this will work better if you use "-X use-set-session-authorization"
to pg_dump (which should be the default, but isn't yet). Without that,
you need an authorization configuration that will let you connect as
someone else --- which IDENT won't, superuser or no. (You could set up
an ident map to let that happen, but it'd be tedious if you have lots of
users to keep track of.)
regards, tom lane
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: tgl@sss.pgh.pa.us, lconrad@laymusic.org
Subject: Re: How to restore from pg_dumpall output
In-Reply-To: <3200.1045188292@sss.pgh.pa.us>
References: <874r78uvm1.fsf@debian.laymusic.org> <3200.1045188292@sss.pgh.pa.us>
* 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