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

Problem with dump/restore and inheritance

From: Chris Dunlop <chris(at)onthe(dot)net(dot)au>
To: pgsql-bugs(at)postgresql(dot)org
Subject: Problem with dump/restore and inheritance
Date: 2006-02-22 07:44:00
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-bugs
G'day all,

PG version: 8.1.0  (also 7.4.9)
OS: Linux (debian/testing)

Restoring a database with inherited tables can result in an
incorrect schema (and therefore inability to restore data).

E.g. using the script below, the 'bar.f1' column in the 'new'
database ends up with a 'not null' constraint that isn't present
in the 'orig' database.



createdb orig
createdb new
psql orig <<END
  create table foo (f1 integer not null);
  create table bar () inherits(foo);
  alter table bar alter column f1 drop not null;
pg_dump orig | psql new


pgsql-bugs by date

Next:From: Tomasz KliczakDate: 2006-02-22 11:15:19
Subject: BUG #2278: problem with grants
Previous:From: Qingqing ZhouDate: 2006-02-22 03:17:51
Subject: FATAL: semctl(1672698088, 12, SETVAL, 0) failed

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