Re: BUG #6461: "-t" deletes primary key

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: lenka(dot)piyush(at)gmail(dot)com, pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #6461: "-t" deletes primary key
Date: 2012-02-19 08:30:32
Message-ID: 1329640232.13241.1.camel@vanquo.pezone.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

On fre, 2012-02-17 at 12:01 -0500, Tom Lane wrote:
> lenka(dot)piyush(at)gmail(dot)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.

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Boszormenyi Zoltan 2012-02-19 11:25:06 Re: BUG #6461: "-t" deletes primary key
Previous Message Tom Lane 2012-02-18 22:08:47 Re: BUG #6465: postgresql-pltcl refuses to compile with 9.1, and FreeBSD does support threaded python