pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bruno Wolff III <bruno@wolff.to>
To: Stephen J. Thompson <stephen@cass-ltd.co.uk>
Cc: pgsql-admin@postgresql.org
Subject: Re: Urgent: Restoring many schemas in a database
Date: Thu, 5 Jun 2003 09:43:15 -0500
Message-ID: <20030605144315.GA21619@wolff.to> (raw)
In-Reply-To: <200306051149.32063.stephen@cass-ltd.co.uk>
References: <200306051149.32063.stephen@cass-ltd.co.uk>

On Thu, Jun 05, 2003 at 11:49:25 +0100,
  "Stephen J. Thompson" <stephen@cass-ltd.co.uk> 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.



view thread (7+ messages)  latest in thread

Message-ID: <20030605144315.GA21619@wolff.to>
Permalink:  ../20030605144315.GA21619@wolff.to/
Also on:    postgresql.org/message-id/20030605144315.GA21619@wolff.to

 · 

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: bruno@wolff.to, stephen@cass-ltd.co.uk
  Subject: Re: Urgent: Restoring many schemas in a database
  In-Reply-To: <20030605144315.GA21619@wolff.to>
  References: <200306051149.32063.stephen@cass-ltd.co.uk> <20030605144315.GA21619@wolff.to>

* 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