pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Bob Pawley <rjpawley@shaw.ca>
Cc: Adrian Klaver <aklaver@comcast.net>
Cc: pgsql-general@postgresql.org
Subject: Re: pg_restore
Date: Sun, 28 Oct 2007 18:18:57 -0400
Message-ID: <8885.1193609937@sss.pgh.pa.us> (raw)
In-Reply-To: <000c01c819ae$2a89ffb0$6401a8c0@owner>
References: <004401c81990$ef57e8c0$6401a8c0@owner>
	<200710281145.58716.aklaver@comcast.net>
	<005b01c819a7$65a7aea0$6401a8c0@owner>
	<7589.1193606901@sss.pgh.pa.us>
	<000c01c819ae$2a89ffb0$6401a8c0@owner>

Bob Pawley <rjpawley@shaw.ca> writes:
> 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.

Oh, I just twigged that you are using a plain-SQL dump file (that is,
you didn't specify -Fc or -Ft to pg_dump).  For plain-SQL dumps you
should not use pg_restore at all; you feed those to psql.

This bites enough newbies that I'm thinking the above message ought to
inclue a HINT to use psql directly.  We haven't previously used hints
in client-side messages but this seems to need one.  Anyone have
thoughts about how to phrase and format it?

(BTW, I just fixed pg_restore to always mention the file name it
attempted to open after getting an fopen failure.)

			regards, tom lane



view thread (67+ messages)  latest in thread

Message-ID: <8885.1193609937@sss.pgh.pa.us>
Permalink:  ../8885.1193609937@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/8885.1193609937@sss.pgh.pa.us

 · 

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: tgl@sss.pgh.pa.us, rjpawley@shaw.ca, aklaver@comcast.net
  Subject: Re: pg_restore
  In-Reply-To: <8885.1193609937@sss.pgh.pa.us>
  References: <004401c81990$ef57e8c0$6401a8c0@owner> <200710281145.58716.aklaver@comcast.net> <005b01c819a7$65a7aea0$6401a8c0@owner> <7589.1193606901@sss.pgh.pa.us> <000c01c819ae$2a89ffb0$6401a8c0@owner> <8885.1193609937@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