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

From A_Schnabel@t-online.de (Andre Schnabel)
Subject Re: Problems with PG_DUMP and restore
Date
Msg-id 004801c10977$8ae4e760$0201a8c0@aschnabel.homeip.net
Whole thread Raw
In response to Problems with PG_DUMP and restore  ("Josh Berkus" <josh@agliodbs.com>)
List pgsql-sql
Hi,

>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'm using a similar method for my own project. But I dump the data with
the -d or -D option. This ist not as fast as the raw copy but more flexible.
Maybe you should give it a try.
If you rename some colums of your table, you should use -d (propert INSERT
commands instead of COPY).
If you reorder the colums of your tables you should use -D (propert INSERT
with explicit Attributenames).

You cannot do both (rename and reorder columns)!

Andre

pgsql-sql by date:

Previous
From: "Graham Vickrage"
Date:
Subject: Group by date_part
Next
From: Roberto Mello
Date:
Subject: Re: Group by date_part