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
Views: Raw Message | Whole Thread | Download mbox | Resend email
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

Browse pgsql-bugs by date

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