Re: Problems with PG_DUMP and restore - Mailing list pgsql-sql

From Richard Huxton
Subject Re: Problems with PG_DUMP and restore
Date
Msg-id 00a701c10960$05035760$1001a8c0@archonet.com
Whole thread Raw
In response to Problems with PG_DUMP and restore  ("Josh Berkus" <josh@agliodbs.com>)
Responses Re: Problems with PG_DUMP and restore  ("Josh Berkus" <josh@agliodbs.com>)
List pgsql-sql
From: "Josh Berkus" <josh@agliodbs.com>

> Folks,
>
> In an effort to do some general cleanup in my database functions, I
> dumped the schema (pgdump -s) and the data (pgdump -a) to seperate text
> files.
>
> I editied and restored the schema fine. However, when I attemped to
> restore the data (via \i filename), it failed selectively; some tables
> were restored but many were not. No errors were logged.

Try having a look at the order the tables get inserted esp. with regard to
any foreign keys etc. - I'm not sure pgdump is that clever about such
things.

- Richard Huxton



pgsql-sql by date:

Previous
From: Tom Lane
Date:
Subject: Re: CREATE TYPE function examples
Next
From: Dado Feigenblatt
Date:
Subject: duplicated OIDs ?