Re: how can i drop a constraint - Mailing list pgsql-sql

From Christoph Haller
Subject Re: how can i drop a constraint
Date
Msg-id 3E5B8A65.15F2E0A2@rodos.fzk.de
Whole thread Raw
In response to how can i drop a constraint  (rute solipa <rutes@eselx.ipl.pt>)
List pgsql-sql
>
> >
> > i've got some tables where constraints don't have an explicit name,
> how can
> > i drop them.
> >
>
> Refer to the system catalogs section within the documentation.
> pg_relcheck keeps track of constraints.
>
>
More precisely

select relname , rcname from pg_class join pg_relcheck on (
pg_relcheck.rcrelid = pg_class.oid ) ;

Regards, Christoph




pgsql-sql by date:

Previous
From: Itai Zukerman
Date:
Subject: Polymorphic?
Next
From: Tom Lane
Date:
Subject: Re: STORAGE and GiST