X-Original-To: pgsql-sql@postgresql.org Received: from spampd.localdomain (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 18A85475F1C for ; Tue, 1 Apr 2003 11:12:46 -0500 (EST) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by postgresql.org (Postfix) with ESMTP id 7947847592C for ; Tue, 1 Apr 2003 11:12:42 -0500 (EST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.9/8.12.9) with ESMTP id h31GCg2L001269; Tue, 1 Apr 2003 11:12:42 -0500 (EST) To: Ian Barwick Cc: Achilleus Mantzios , Luis Mix , pgsql-sql@postgresql.org Subject: Re: How can I quit this: "Unique " to my table? In-reply-to: <200304011715.54301.barwick@gmx.net> References: <200304011715.54301.barwick@gmx.net> Comments: In-reply-to Ian Barwick message dated "Tue, 01 Apr 2003 17:15:54 +0200" Date: Tue, 01 Apr 2003 11:12:42 -0500 Message-ID: <1267.1049213562@sss.pgh.pa.us> From: Tom Lane X-Spam-Status: No, hits=-32.5 required=5.0 tests=BAYES_01,EMAIL_ATTRIBUTION,IN_REP_TO,QUOTED_EMAIL_TEXT, REFERENCES,REPLY_WITH_QUOTES autolearn=ham version=2.50 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) X-Archive-Number: 200304/10 X-Sequence-Number: 12711 Ian Barwick writes: > On Tuesday 01 April 2003 21:26, Achilleus Mantzios wrote: >> drop index b_prestamo_no_inventa_idx; > ALTER TABLE b_prestamo DROP CONSTRAINT b_prestamo_no_inventa_key ?? The correct answer is "one or the other depending on which PG version he's running" ;-). Before 7.3, drop the index; as of 7.3 you're supposed to drop the constraint instead. (No harm in trying the wrong one, it just won't let you do it.) Looking at the output of psql's "\d b_prestamo" would be a good idea to verify the spelling of the index and/or constraint name. regards, tom lane