From marcelo.silva@infocom.com.br Tue Jul 30 17:40:16 2002 Received: from thor.infocom.com.br (200-204-62-132.dsl.telesp.net.br [200.204.62.132]) by postgresql.org (Postfix) with ESMTP id DFE40475828 for ; Tue, 30 Jul 2002 13:40:16 -0400 (EDT) Received: from inf0451042 (unknown [10.10.10.141]) by thor.infocom.com.br (Postfix) with SMTP id 1F875905B7 for ; Tue, 30 Jul 2002 14:38:56 -0300 (BRT) Message-ID: <008c01c237ef$f2da4f20$8d0a0a0a@infocom.com.br> From: "Marcelo Henrique da Silva" To: Subject: Delete a FOREIGN KEY Date: Tue, 30 Jul 2002 14:38:41 -0300 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0089_01C237D6.CCE53E60" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2919.6600 X-MIMEOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 X-Archive-Number: 200207/448 X-Sequence-Number: 8826 This is a multi-part message in MIME format. ------=_NextPart_000_0089_01C237D6.CCE53E60 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi All, I'm beginner in PostgreSQL! So, how can I delete a FOREIGN KEY in PostgreSQL? Thanks. Marcelo Henrique da Silva. ------=_NextPart_000_0089_01C237D6.CCE53E60 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hi All,
 
I'm beginner in PostgreSQL!
So, how can I delete a FOREIGN KEY in=20 PostgreSQL?
 
Thanks.
 
Marcelo Henrique da=20 Silva.
------=_NextPart_000_0089_01C237D6.CCE53E60-- From sszabo@megazone23.bigpanda.com Tue Jul 30 19:23:30 2002 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.