pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Florian Weimer <Weimer@CERT.Uni-Stuttgart.DE>
To: pgsql-admin@postgresql.org
Subject: pg_restore and permissions
Date: Thu, 25 Apr 2002 18:08:07 +0200
Message-ID: <87vgafu5g8.fsf@CERT.Uni-Stuttgart.DE> (raw)

Is there a simple way to restore a databases from a pg_dump file?
I've got a "pg_dump -F c" from version 7.1.3 and would like to restore
it on a 7.2.1 database server.

However, if I invoke, say, "pg_restore -C -d web web.db", I get the
following error message:

pg_restore: [archiver (db)] could not reconnect to database: FATAL 1:  IDENT authentication failed for user "www-data"

My pg_hba.conf looks like this:

local        all                                           ident sameuser
host         all         127.0.0.1     255.0.0.0           ident sameuser
host         all         0.0.0.0       0.0.0.0             reject

I know how to work around this problem (and did it in the past), but
I'd really like to be able to restore a database using a single
command.  Does such a command exist?

-- 
Florian Weimer 	                  Weimer@CERT.Uni-Stuttgart.DE
University of Stuttgart           http://CERT.Uni-Stuttgart.DE/people/fw/
RUS-CERT                          +49-711-685-5973/fax +49-711-685-5898



view thread (9+ messages)  latest in thread

Message-ID: <87vgafu5g8.fsf@CERT.Uni-Stuttgart.DE>
Permalink:  ../87vgafu5g8.fsf@CERT.Uni-Stuttgart.DE/
Also on:    postgresql.org/message-id/87vgafu5g8.fsf@CERT.Uni-Stuttgart.DE

 · 

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 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: Weimer@CERT.Uni-Stuttgart.DE
  Subject: Re: pg_restore and permissions
  In-Reply-To: <87vgafu5g8.fsf@CERT.Uni-Stuttgart.DE>
  References: <87vgafu5g8.fsf@CERT.Uni-Stuttgart.DE>

* 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