Received: from candle.pha.pa.us (216-55-132-35.dsl.san-diego.abac.net [216.55.132.35]) by postgresql.org (Postfix) with ESMTP id 16B5A47590F for ; Thu, 25 Apr 2002 12:16:23 -0400 (EDT) Received: (from pgman@localhost) by candle.pha.pa.us (8.11.6/8.10.1) id g3PGGMN24174; Thu, 25 Apr 2002 12:16:22 -0400 (EDT) From: Bruce Momjian Message-Id: <200204251616.g3PGGMN24174@candle.pha.pa.us> Subject: Re: pg_restore and permissions In-Reply-To: <87vgafu5g8.fsf@CERT.Uni-Stuttgart.DE> To: Florian Weimer Date: Thu, 25 Apr 2002 12:16:22 -0400 (EDT) Cc: pgsql-admin@postgresql.org X-Mailer: ELM [version 2.4ME+ PL97 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Archive-Number: 200204/242 X-Sequence-Number: 4130 That should work. Because of the error, I wonder if your OS doesn't support local/indent authentication. Can you psql into template1 as that user? --------------------------------------------------------------------------- Florian Weimer wrote: > 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 > > ---------------------------(end of broadcast)--------------------------- > TIP 5: Have you checked our extensive FAQ? > > http://www.postgresql.org/users-lounge/docs/faq.html > -- Bruce Momjian | http://candle.pha.pa.us pgman@candle.pha.pa.us | (610) 853-3000 + If your life is a hard drive, | 830 Blythe Avenue + Christ can be your backup. | Drexel Hill, Pennsylvania 19026