Re: BUG #6461: "-t" deletes primary key - Mailing list pgsql-bugs

From Tom Lane
Subject Re: BUG #6461: "-t" deletes primary key
Date
Msg-id 26918.1329670215@sss.pgh.pa.us
Whole thread Raw
In response to Re: BUG #6461: "-t" deletes primary key  (Peter Eisentraut <peter_e@gmx.net>)
List pgsql-bugs
Peter Eisentraut <peter_e@gmx.net> writes:
> On fre, 2012-02-17 at 12:01 -0500, Tom Lane wrote:
>> lenka.piyush@gmail.com writes:
>>> when i restore a particular table using pg_restore (using option "-t") it
>>> doesn't restore my primary key...

>> This is not a bug.  -t selects the table only, not associated indexes.

> But from a user's perspective, that behavior seems kind of useless.

Well, I can see the possible usefulness of a switch that says "give me
this table and all associated indexes/constraints" (other than FK
constraints, likely).  But it would be something new, not -t.

            regards, tom lane

pgsql-bugs by date:

Previous
From: Boszormenyi Zoltan
Date:
Subject: Re: BUG #6461: "-t" deletes primary key
Next
From: "MauMau"
Date:
Subject: [Bug fix] postmaster always crashes on a debug version of Windows