Received: from Mail.CERT.Uni-Stuttgart.DE (mail.cert.uni-stuttgart.de [129.69.16.17]) by postgresql.org (Postfix) with SMTP id DB90B47597D for ; Thu, 25 Apr 2002 12:09:08 -0400 (EDT) Received: (qmail 25795 invoked by uid 1000); 25 Apr 2002 16:08:08 -0000 To: pgsql-admin@postgresql.org Subject: pg_restore and permissions From: Florian Weimer Date: Thu, 25 Apr 2002 18:08:07 +0200 Message-ID: <87vgafu5g8.fsf@CERT.Uni-Stuttgart.DE> Lines: 23 User-Agent: Gnus/5.090006 (Oort Gnus v0.06) Emacs/21.1 (i686-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Archive-Number: 200204/241 X-Sequence-Number: 4129 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