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

Re: pg_restore -t table : can silently omit constraints

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Erik Rijkers" <er(at)xs4all(dot)nl>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: pg_restore -t table : can silently omit constraints
Date: 2009-04-28 22:37:09
Message-ID: 19563.1240958229@sss.pgh.pa.us (view raw or flat)
Thread:
Lists: pgsql-bugs
"Erik Rijkers" <er(at)xs4all(dot)nl> writes:
> I ran into a bug in pg_restore, where it silently omits
> to restore a constraint (here a primary key):

pg_restore's notion of what -t means is very much more restricted than
pg_dump's is.  We might change this someday, but don't hold your breath
(ie, it's a missing feature not a bug).

In the example at hand I'd suggest just using the -t switch on the dump
side and not passing anything to pg_restore.

			regards, tom lane

In response to

pgsql-bugs by date

Next:From: Roger KrimstockDate: 2009-04-29 01:49:32
Subject: BUG #4785: Installation fails
Previous:From: Erik RijkersDate: 2009-04-28 21:54:02
Subject: pg_restore -t table : can silently omit constraints

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