pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bob Pawley <rjpawley@shaw.ca>
To: Adrian Klaver <aklaver@comcast.net>
To: pgsql-general@postgresql.org
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Subject: Re: pg_restore
Date: Mon, 29 Oct 2007 09:50:25 -0700
Message-ID: <002901c81a4b$cf3203d0$6401a8c0@owner> (raw)
References: <004401c81990$ef57e8c0$6401a8c0@owner>
	<200710281515.39475.aklaver@comcast.net>
	<001901c819b3$822878f0$6401a8c0@owner>
	<200710281558.56072.aklaver@comcast.net>

Following the examples in the docs I've come to this.

I am attempting to restore the existing sql dump using
psql -d PDW -f aurel.sql

I am then asked for a password.

I try every password that the computer knows with no success.

Funny thing the password cursor doesn't move when inputting the password.

I keep getting authentication failure.

When I attempt to do a new pg_dump with -Fc I also get a request for 
password with identical results.

Bob



----- Original Message ----- 
From: "Adrian Klaver" <aklaver@comcast.net>
To: <pgsql-general@postgresql.org>
Cc: "Bob Pawley" <rjpawley@shaw.ca>; "Tom Lane" <tgl@sss.pgh.pa.us>
Sent: Sunday, October 28, 2007 3:58 PM
Subject: Re: [GENERAL] pg_restore


> On Sunday 28 October 2007 3:40 pm, Bob Pawley wrote:
>> This is the dump command
>>
>> pg_dump -h localhost -d  Aurel -U postgres
>>
>> Could you suggest a dump command that will match the restore command -
>>
>> pg_restore  -h localhost -d PDW -U postgres  aurel.sql
>>
>>
>> Thanks
>>
>> Bob
>>
> It depends on what you want to do. But to use pg_restore you will need to 
> use
> one of either -Fc or Ft after the pg_dump command. My concern is that you 
> are
> connecting to a different database name in the dump and restore commands.
> This may be what you want, but then again it may not.I would suggest 
> reading
> the information at the URL below before proceeding further.
> http://www.postgresql.org/docs/8.2/interactive/app-pgdump.html
>
> -- 
> Adrian Klaver
> aklaver@comcast.net 




view thread (67+ messages)  latest in thread

Message-ID: <002901c81a4b$cf3203d0$6401a8c0@owner>
Permalink:  ../002901c81a4b$cf3203d0$6401a8c0@owner/
Also on:    postgresql.org/message-id/002901c81a4b$cf3203d0$6401a8c0@owner

 · 

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-general@postgresql.org
  Cc: rjpawley@shaw.ca, aklaver@comcast.net, tgl@sss.pgh.pa.us
  Subject: Re: pg_restore
  In-Reply-To: <002901c81a4b$cf3203d0$6401a8c0@owner>
  References: <004401c81990$ef57e8c0$6401a8c0@owner> <200710281515.39475.aklaver@comcast.net> <001901c819b3$822878f0$6401a8c0@owner> <200710281558.56072.aklaver@comcast.net> <002901c81a4b$cf3203d0$6401a8c0@owner>

* 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