Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id 1255A2AB7ED for ; Fri, 17 Feb 2012 13:02:13 -0400 (AST) Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1RyRCF-0002tg-7r for pgsql-bugs@postgresql.org; Fri, 17 Feb 2012 17:02:12 +0000 Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id q1HH1v3K028379; Fri, 17 Feb 2012 12:01:57 -0500 (EST) To: lenka.piyush@gmail.com cc: pgsql-bugs@postgresql.org Subject: Re: BUG #6461: "-t" deletes primary key In-reply-to: References: Comments: In-reply-to lenka.piyush@gmail.com message dated "Fri, 17 Feb 2012 10:41:00 +0000" Date: Fri, 17 Feb 2012 12:01:57 -0500 Message-ID: <28378.1329498117@sss.pgh.pa.us> From: Tom Lane X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201202/124 X-Sequence-Number: 32467 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. regards, tom lane