Re: constraint

From: "Christopher Kings-Lynne" <chriskl(at)familyhealth(dot)com(dot)au>
To: Ricardo Javier Aranibar León <ricardo_jal(at)hotmail(dot)com>, <pgsql-sql(at)postgresql(dot)org>
Subject: Re: constraint
Date: 2002-07-03 07:02:37
Message-ID: GNELIHDDFBOCMGBFGEFOCEOLCCAA.chriskl@familyhealth.com.au
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Hi Ricardo,

I assume you're talking about foreign key constraints?

Dropping a constraint is a real pain in all versions of Postgres up to and
including 7.2.1.

You will need to manually drop the RI trigger on the child table and the two
triggers on the parent table.

Techdocs has some information on doing this here:

http://techdocs.postgresql.org/techdocs/hackingreferentialintegrity.php

Chris

> -----Original Message-----
> From: pgsql-sql-owner(at)postgresql(dot)org
> [mailto:pgsql-sql-owner(at)postgresql(dot)org]On Behalf Of Ricardo Javier
> Aranibar León
> Sent: Wednesday, 3 July 2002 4:08 AM
> To: pgsql-sql(at)postgresql(dot)org
> Subject: [SQL] constraint
>
>
>
>
> Hi list,
> I need your help.
> How I can delete or DROP a constraint?
> I use POSTGRESQL 7.0.3
>
> _________________________________________________________________
> MSN. Más Útil cada Día. http://www.msn.es/intmap/
>
>
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 6: Have you searched our list archives?
>
> http://archives.postgresql.org
>
>

In response to

  • constraint at 2002-07-02 20:07:37 from Ricardo Javier Aranibar León

Browse pgsql-sql by date

  From Date Subject
Next Message Christopher Kings-Lynne 2002-07-03 07:42:58 Re: Why doesn't it use indexes?
Previous Message Jie Liang 2002-07-02 23:08:37 Re: pg_restore cannot restore function