Re: Dumping/Restoring with constraints?

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

"Phoenix Kiula" <phoenix(dot)kiula(at)gmail(dot)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

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Phoenix Kiula 2008-08-27 15:20:55 Re: Dumping/Restoring with constraints?
Previous Message Phoenix Kiula 2008-08-27 14:51:42 Re: Dumping/Restoring with constraints?

Browse pgsql-general by date

  From Date Subject
Next Message Steve Clark 2008-08-27 15:00:54 8.3.1 query plan
Previous Message Phoenix Kiula 2008-08-27 14:51:42 Re: Dumping/Restoring with constraints?