Received: from news.tht.net (news.hub.org [216.126.91.242]) by postgresql.org (8.11.3/8.11.4) with ESMTP id fATNcim37301 for ; Thu, 29 Nov 2001 18:38:44 -0500 (EST) (envelope-from news@news.tht.net) Received: (from news@localhost) by news.tht.net (8.11.4/8.11.4) id fATNTTl07662 for pgsql-sql@postgresql.org; Thu, 29 Nov 2001 18:29:29 -0500 (EST) (envelope-from news) From: "Ligia Pimentel" X-Newsgroups: comp.databases.postgresql.sql Subject: An easy question about creating a primary key Date: Thu, 29 Nov 2001 17:22:22 -0600 Organization: . Lines: 13 Message-ID: <9u6gco$7fb$1@news.tht.net> Reply-To: "Ligia Pimentel" X-Complaints-To: scrappy@hub.org X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4522.1200 X-Mimeole: Produced By Microsoft MimeOLE V5.50.4522.1200 To: pgsql-sql@postgresql.org X-Archive-Number: 200112/26 X-Sequence-Number: 5849 Hello. I'm using postgres 7.1. I have an easy question... I want to create a primary key constraint on an existing table. The documentation says I can't . Please confirm. If this is true... How can I rename the existing table so I can create the new one and copy the data? Thank you Ligia