Re: Urgent: Restoring many schemas in a database

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: stephen(at)cass-ltd(dot)co(dot)uk
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: Urgent: Restoring many schemas in a database
Date: 2003-06-05 14:45:08
Message-ID: 2463.1054824308@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

"Stephen J. Thompson" <stephen(at)cass-ltd(dot)co(dot)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

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Oliver Elphick 2003-06-05 14:49:55 Re: Urgent: Restoring many schemas in a database
Previous Message Bruno Wolff III 2003-06-05 14:43:15 Re: Urgent: Restoring many schemas in a database