Skip site navigation (1) Skip section navigation (2)

Upgrade time, dump+restore trouble.

From: Jesper Krogh <jesper(at)krogh(dot)cc>
To: pgsql-admin(at)postgresql(dot)org
Subject: Upgrade time, dump+restore trouble.
Date: 2007-10-17 14:18:21
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-admin
We have a quite large (in our measurements) database, currently around
150GB of data.

Time has come to upgrade to 8.2.5 from 8.1.10. Going to the fine
manual.. having a system where both databases are installed PG8.1 on
port 5432 and PG8.2 on port 5433, logging in as the "postgres" user and

pg_dumpall | psql -p 5433

This fails due to constraints on the tables. Typical error messages look
ERROR:  new row for relation "box_full" violates check constraint

The tables are running a "home-made" timetravelling feature where a
contraint on the table implements the foreing keys on the table.

How can I instruct pg_dumpall to turn off these constriants during

Jesper Krogh, jesper(at)krogh(dot)cc


pgsql-admin by date

Next:From: Tom LaneDate: 2007-10-17 16:10:34
Subject: Re: Upgrade time, dump+restore trouble.
Previous:From: Kevin KempterDate: 2007-10-17 14:04:09
Subject: Re: running a SQL command at startup time

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group