From: Tom Lane <tgl@sss.pgh.pa.us>
To: Peter Eisentraut <peter_e@gmx.net>
Cc: lenka.piyush@gmail.com
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #6461: "-t" deletes primary key
Date: Sun, 19 Feb 2012 11:50:15 -0500
Message-ID: <26918.1329670215@sss.pgh.pa.us> (raw)
In-Reply-To: <1329640232.13241.1.camel@vanquo.pezone.net>
References: <E1RyLFM-0007Oc-Sk@wrigleys.postgresql.org>
<28378.1329498117@sss.pgh.pa.us>
<1329640232.13241.1.camel@vanquo.pezone.net>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: tgl@sss.pgh.pa.us, peter_e@gmx.net, lenka.piyush@gmail.com
Subject: Re: BUG #6461: "-t" deletes primary key
In-Reply-To: <26918.1329670215@sss.pgh.pa.us>
References: <E1RyLFM-0007Oc-Sk@wrigleys.postgresql.org> <28378.1329498117@sss.pgh.pa.us> <1329640232.13241.1.camel@vanquo.pezone.net> <26918.1329670215@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox