Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id DA3BA4758BD for ; Sun, 24 Nov 2002 09:05:56 -0500 (EST) Received: from rtlocal.trade-india.com (mail-relay.trade-india.com [203.196.129.235]) by postgresql.org (Postfix) with SMTP id 59C8947580B for ; Sun, 24 Nov 2002 09:05:53 -0500 (EST) Received: (qmail 10162 invoked from network); 24 Nov 2002 13:55:30 -0000 Received: from news1.trade-india.com (HELO www.trade-india.com) (130.94.20.27) by infocom-236-129-del.trade-india.com with SMTP; 24 Nov 2002 13:55:30 -0000 Received: (qmail 1735 invoked by uid 99); 24 Nov 2002 14:05:48 -0000 Received: from 203.145.129.4 (proxying for 203.145.130.142) (SquirrelMail authenticated user mallah) by mail.trade-india.com with HTTP; Sun, 24 Nov 2002 19:35:48 +0530 (IST) Message-ID: <49357.203.145.129.4.1038146748.squirrel@mail.trade-india.com> Date: Sun, 24 Nov 2002 19:35:48 +0530 (IST) Subject: Re: Dropping Foreign Key without recreating table From: To: In-Reply-To: <3DE0D886.4DE837BB@usco.de> References: <3DE0D886.4DE837BB@usco.de> X-Priority: 3 Importance: Normal X-MSMail-Priority: Normal Cc: X-Mailer: SquirrelMail (version 1.2.6) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200211/233 X-Sequence-Number: 6421 since name of constrauint is in mixed cased u must double quote it in command. below will work. psql> alter table mytable drop constraint "RI_ConstraintTrigger_17195" restrict ; > I wanted to change a foreign key to be deferrable (db version 7.2.1). During table creation I > didn't specify a constraint name for the foreign key. > "\d" shows a trigger RI_ConstraintTrigger_17195, however when I'm trying to "alter table > mytable drop constraint RI_ConstraintTrigger_17195 restrict" I'm getting the error "constraint > does not exist. > What am I doing wrong here? Or is there another simple solution to switch foreign keys to be > deferrable? > > Regards > > Egon > > > > ---------------------------(end of broadcast)--------------------------- TIP 2: you can get off > all lists at once with the unregister command > (send "unregister YourEmailAddressHere" to majordomo@postgresql.org) ----------------------------------------- Get your free web based email at trade-india.com. "India's Leading B2B eMarketplace.!" http://www.trade-india.com/