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

From Christoph Dalitz
Subject Re: Deleting foreign key constraints
Date
Msg-id 20020829115132.71412344.christoph.dalitz@hs-niederrhein.de
Whole thread Raw
In response to Deleting foreign key constraints  ("Nikhil G. Daddikar" <ngd@celoxis.com>)
List pgsql-general
On Thu, 29 Aug 2002 05:44:14 -0400
pgsql-general-owner@postgresql.org wrote:
>
> Is there a way to delete all foreign key constraints for a table?
>
"ALTER <table> DROP <constraint>" should do it. See the SQL command reference
for details.

> Also, is there a way to programmatically find all tables (excluding
> system created) in a database?
>
Call psql qith the "-E" option and enter "\d".
Then psql will echo the internal SQL-commands used for collecting the info.

Christoph Dalitz

pgsql-general by date:

Previous
From: Oleg Bartunov
Date:
Subject: Re: Naming-scheme for db-files
Next
From: "Markus Wollny"
Date:
Subject: Re: Naming-scheme for db-files