Re: Deleting foreign key constraints

From: Christoph Dalitz <christoph(dot)dalitz(at)hs-niederrhein(dot)de>
To: ngd(at)celoxis(dot)com
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Deleting foreign key constraints
Date: 2002-08-29 09:51:32
Message-ID: 20020829115132.71412344.christoph.dalitz@hs-niederrhein.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Thu, 29 Aug 2002 05:44:14 -0400
pgsql-general-owner(at)postgresql(dot)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

Browse pgsql-general by date

  From Date Subject
Next Message Markus Wollny 2002-08-29 10:20:04 Re: Naming-scheme for db-files
Previous Message jerome 2002-08-29 09:30:31 date_part???