From: Tom Lane <tgl@sss.pgh.pa.us>
To: stephen@cass-ltd.co.uk
Cc: pgsql-admin@postgresql.org
Subject: Re: Urgent: Restoring many schemas in a database
Date: Thu, 05 Jun 2003 10:45:08 -0400
Message-ID: <2463.1054824308@sss.pgh.pa.us> (raw)
In-Reply-To: <200306051149.32063.stephen@cass-ltd.co.uk>
References: <200306051149.32063.stephen@cass-ltd.co.uk>
"Stephen J. Thompson" <stephen@cass-ltd.co.uk> 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
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: tgl@sss.pgh.pa.us, stephen@cass-ltd.co.uk
Subject: Re: Urgent: Restoring many schemas in a database
In-Reply-To: <2463.1054824308@sss.pgh.pa.us>
References: <200306051149.32063.stephen@cass-ltd.co.uk> <2463.1054824308@sss.pgh.pa.us>
* 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