Re: Dumping/Restoring with constraints?

From: "Phoenix Kiula" <phoenix(dot)kiula(at)gmail(dot)com>
To: "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: "PG-General Mailing List" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Dumping/Restoring with constraints?
Date: 2008-08-27 14:51:42
Message-ID: e373d31e0808270751m646aebb5ga122d0d8aa87fd11@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin pgsql-general

On Wed, Aug 27, 2008 at 10:42 PM, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:

> For pg_dumpall, you shouldn't even have created the
> databases, just start from a virgin installation.

Should I have CREATEd the db at least without the table structure?

I dropped the database locally. Entirely. Gone.

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

What gives?

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Tom Lane 2008-08-27 14:53:22 Re: Dumping/Restoring with constraints?
Previous Message Tom Lane 2008-08-27 14:42:56 Re: Dumping/Restoring with constraints?

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2008-08-27 14:53:22 Re: Dumping/Restoring with constraints?
Previous Message Tom Lane 2008-08-27 14:42:56 Re: Dumping/Restoring with constraints?