Re: Problems with PG_DUMP and restore

From: "Richard Huxton" <dev(at)archonet(dot)com>
To: "Josh Berkus" <josh(at)agliodbs(dot)com>, <pgsql-sql(at)postgresql(dot)org>
Subject: Re: Problems with PG_DUMP and restore
Date: 2001-07-10 16:47:31
Message-ID: 00a701c10960$05035760$1001a8c0@archonet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

From: "Josh Berkus" <josh(at)agliodbs(dot)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

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Roberto Mello 2001-07-10 17:07:41 Re: CREATE TYPE function examples
Previous Message Peter Eisentraut 2001-07-10 16:43:59 Re: CREATE TYPE function examples