pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Phoenix Kiula <phoenix.kiula@gmail.com>
Cc: PG-General Mailing List <pgsql-general@postgresql.org>
Subject: Re: Dumping/Restoring with constraints?
Date: Wed, 27 Aug 2008 10:53:22 -0400
Message-ID: <23743.1219848802@sss.pgh.pa.us> (raw)
In-Reply-To: <e373d31e0808270751m646aebb5ga122d0d8aa87fd11@mail.gmail.com>
References: <e373d31e0808270619uba31c8eodc2c85662b85140a@mail.gmail.com>
	<22708.1219845242@sss.pgh.pa.us>
	<e373d31e0808270712n7c599a82sca5a6bbf6cc5c20a@mail.gmail.com>
	<23571.1219848176@sss.pgh.pa.us>
	<e373d31e0808270751m646aebb5ga122d0d8aa87fd11@mail.gmail.com>

"Phoenix Kiula" <phoenix.kiula@gmail.com> writes:
> Then I tried this:
>   $  pg_restore -h localhost mydb.sql
> This tells me:
>   pg_restore: [archiver] input file does not appear to be a valid archive

No, you were right the first time: just feed the dump script to psql.

			regards, tom lane



view thread (36+ messages)  latest in thread

Message-ID: <23743.1219848802@sss.pgh.pa.us>
Permalink:  ../23743.1219848802@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/23743.1219848802@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 using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: tgl@sss.pgh.pa.us, phoenix.kiula@gmail.com, pgsql-general@postgresql.org
  Subject: Re: Dumping/Restoring with constraints?
  In-Reply-To: <23743.1219848802@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