Re: Deleting foreign key constraints - Mailing list pgsql-general

From Stephan Szabo
Subject Re: Deleting foreign key constraints
Date
Msg-id 20020829065343.Q96596-100000@megazone23.bigpanda.com
Whole thread Raw
In response to Deleting foreign key constraints  ("Nikhil G. Daddikar" <ngd@celoxis.com>)
List pgsql-general
On Thu, 29 Aug 2002, Nikhil G. Daddikar wrote:

> Is there a way to delete all foreign key constraints for a table?

Not a particularly good one.  You'll probably need to drop the triggers
manually (from both that table and the table it references) and you'll
need to match up the arguments to do that.  There's some info on
techdocs.postgresql.org about the triggers that you might find useful.

> Also, is there a way to programmatically find all tables (excluding
> system created) in a database?

Check the query generated by psql for a \d (use psql -E to get the
the query).  It'll be something with pg_class.

>
> I am using 7.1.3


pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: BUG?: timestamp without TZ created as timestamp *with* TZ
Next
From: Stephan Szabo
Date:
Subject: Re: date_part???