Received: from megazone.bigpanda.com (megazone.bigpanda.com [63.150.15.178]) by postgresql.org (Postfix) with ESMTP id AE915475C97 for ; Tue, 30 Jul 2002 15:23:30 -0400 (EDT) Received: by megazone.bigpanda.com (Postfix, from userid 1001) id 1523BD60C; Tue, 30 Jul 2002 12:23:31 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by megazone.bigpanda.com (Postfix) with ESMTP id 0ACA85C03; Tue, 30 Jul 2002 12:23:31 -0700 (PDT) Date: Tue, 30 Jul 2002 12:23:30 -0700 (PDT) From: Stephan Szabo To: Marcelo Henrique da Silva Cc: Subject: Re: Delete a FOREIGN KEY In-Reply-To: <008c01c237ef$f2da4f20$8d0a0a0a@infocom.com.br> Message-ID: <20020730122235.R7549-100000@megazone23.bigpanda.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200207/451 X-Sequence-Number: 8829 On Tue, 30 Jul 2002, Marcelo Henrique da Silva wrote: > Hi All, > > I'm beginner in PostgreSQL! > So, how can I delete a FOREIGN KEY in PostgreSQL? You'll need to drop the triggers related to the foreign key. You might want to look at the referential integrity documents on techdocs.postgresql.org.