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: Sun, 28 Oct 2007 15:40:13 -0700
Message-ID: <001901c819b3$822878f0$6401a8c0@owner> (raw)
References: <004401c81990$ef57e8c0$6401a8c0@owner>
<7589.1193606901@sss.pgh.pa.us>
<000c01c819ae$2a89ffb0$6401a8c0@owner>
<200710281515.39475.aklaver@comcast.net>
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
----- 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:15 PM
Subject: Re: [GENERAL] pg_restore
> On Sunday 28 October 2007 3:01 pm, Bob Pawley wrote:
>> The latest in the saga -
>>
>> By using - pg_restore -h localhost -d PDW -U postgres aurel.sql
>>
>> I get the message - pg_restore: input file does not appear to be a valid
>> archive.
>>
>> I get this message when I used the aurel.sql file which I previously
>> loaded
>> successfully in 8.1 and also when I use an aurel.sql file which I just
>> successfully dumped a few minutes ago from the 8.1 on my other computer.
>>
>> Could pg_restore in my 8.2 be corrupted??
>>
>> Bob
> What does your dump command look like? My guess is your are doing a plain
> text
> dump and pg_restore only works with the custom formats. If you want to use
> the plain text version than you need to use psql. This maybe how you got
> to
> the point of having both pg_restore and psql on the same line.
> --
> Adrian Klaver
> aklaver@comcast.net
>
> ---------------------------(end of broadcast)---------------------------
> TIP 9: In versions below 8.0, the planner will ignore your desire to
> choose an index scan if your joining column's datatypes do not
> match
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: <001901c819b3$822878f0$6401a8c0@owner>
References: <004401c81990$ef57e8c0$6401a8c0@owner> <7589.1193606901@sss.pgh.pa.us> <000c01c819ae$2a89ffb0$6401a8c0@owner> <200710281515.39475.aklaver@comcast.net> <001901c819b3$822878f0$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