X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (developer.postgresql.org [64.117.224.193]) by svr1.postgresql.org (Postfix) with ESMTP id 32303EFF73 for ; Thu, 5 Jun 2003 14:45:07 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (svr1.postgresql.org [64.117.224.193]) (amavisd-new, port 10024) with ESMTP id 91777-01 for ; Thu, 5 Jun 2003 14:45:06 +0000 (GMT) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by svr1.postgresql.org (Postfix) with ESMTP id 55063EFF7F for ; Thu, 5 Jun 2003 14:45:06 +0000 (GMT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.9/8.12.9) with ESMTP id h55Ej8U6002464; Thu, 5 Jun 2003 10:45:08 -0400 (EDT) To: stephen@cass-ltd.co.uk Cc: pgsql-admin@postgresql.org Subject: Re: Urgent: Restoring many schemas in a database In-reply-to: <200306051149.32063.stephen@cass-ltd.co.uk> References: <200306051149.32063.stephen@cass-ltd.co.uk> Comments: In-reply-to "Stephen J. Thompson" message dated "Thu, 05 Jun 2003 11:49:25 +0100" Date: Thu, 05 Jun 2003 10:45:08 -0400 Message-ID: <2463.1054824308@sss.pgh.pa.us> From: Tom Lane X-Archive-Number: 200306/25 X-Sequence-Number: 9016 "Stephen J. Thompson" writes: > I am trying to restore a 7.3 database with many schemas and schema users in > it. The issue I am having is that there are many \connect statements in the > backup file and it keeps asking me for a new password each time. Is there an > easier way than examining the file and carefully following the connect > statement orders and entering the correct password. (btw there are over 100 > connect statements). Use a non-password-based authentication method (TRUST even, if you are the only person on the machine). Or if you can re-dump, use -X use-set-session-authorization (I'm really not sure why we haven't made this the default...) regards, tom lane