Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id 4D53117BEC3 for ; Sun, 19 Feb 2012 04:30:50 -0400 (AST) Received: from mailout-de.gmx.net ([213.165.64.23]) by magus.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1Rz2AQ-0001St-Km for pgsql-bugs@postgresql.org; Sun, 19 Feb 2012 08:30:49 +0000 Received: (qmail invoked by alias); 19 Feb 2012 08:30:33 -0000 Received: from a88-115-218-87.elisa-laajakaista.fi (EHLO [10.0.0.108]) [88.115.218.87] by mail.gmx.net (mp001) with SMTP; 19 Feb 2012 09:30:33 +0100 X-Authenticated: #495269 X-Provags-ID: V01U2FsdGVkX19Zeox93O9ZLvYP681dnB628ueGk5MfTswl8WOfsH DdxZYAv0JRgxj+ Message-ID: <1329640232.13241.1.camel@vanquo.pezone.net> Subject: Re: BUG #6461: "-t" deletes primary key From: Peter Eisentraut To: Tom Lane Cc: lenka.piyush@gmail.com, pgsql-bugs@postgresql.org Date: Sun, 19 Feb 2012 10:30:32 +0200 In-Reply-To: <28378.1329498117@sss.pgh.pa.us> References: <28378.1329498117@sss.pgh.pa.us> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.2.2-1 Content-Transfer-Encoding: 7bit Mime-Version: 1.0 X-Y-GMX-Trusted: 0 X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201202/139 X-Sequence-Number: 32482 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.