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 4F3BBEFF73 for ; Thu, 5 Jun 2003 14:40:42 +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 91252-10 for ; Thu, 5 Jun 2003 14:40:41 +0000 (GMT) Received: from wolff.to (wolff.to [66.93.249.74]) by svr1.postgresql.org (Postfix) with SMTP id 69341EFF34 for ; Thu, 5 Jun 2003 14:40:40 +0000 (GMT) Received: (qmail 21639 invoked by uid 500); 5 Jun 2003 14:43:15 -0000 Date: Thu, 5 Jun 2003 09:43:15 -0500 From: Bruno Wolff III To: "Stephen J. Thompson" Cc: pgsql-admin@postgresql.org Subject: Re: Urgent: Restoring many schemas in a database Message-ID: <20030605144315.GA21619@wolff.to> Mail-Followup-To: "Stephen J. Thompson" , pgsql-admin@postgresql.org References: <200306051149.32063.stephen@cass-ltd.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200306051149.32063.stephen@cass-ltd.co.uk> User-Agent: Mutt/1.5.4i X-Archive-Number: 200306/26 X-Sequence-Number: 9017 On Thu, Jun 05, 2003 at 11:49:25 +0100, "Stephen J. Thompson" wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Hello all, > > 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). Assuming you are doing the restore on the server running the database and that your OS supports getpeerid of the equivalent, you should use ident authentication. You can allow your *nix administration account to connect as any of the needed postgres accounts and then you won't have to supply passwords.