Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 39B8E47611B for ; Sun, 24 Nov 2002 08:46:06 -0500 (EST) Received: from localdomain (m1.xenion.de [62.8.212.158]) by postgresql.org (Postfix) with ESMTP id 783714760DC for ; Sun, 24 Nov 2002 08:46:05 -0500 (EST) Received: from usco.de [213.39.243.108] by localdomain with Novonyx SMTP Server $Revision: 2.75.1.9 $; Sun, 24 Nov 2002 14:46:56 +0100 (ECTD) Message-ID: <3DE0D886.4DE837BB@usco.de> Date: Sun, 24 Nov 2002 14:47:50 +0100 From: Egon Reetz X-Mailer: Mozilla 4.8 [en] (WinNT; U) X-Accept-Language: en MIME-Version: 1.0 To: pgsql-admin@postgresql.org Subject: Dropping Foreign Key without recreating table Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200211/232 X-Sequence-Number: 6420 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