Re: how can i drop a <unnamed> constraint

From: Christoph Haller <ch(at)rodos(dot)fzk(dot)de>
To: pgsql-sql(at)postgresql(dot)org
Cc: rutes(at)eselx(dot)ipl(dot)pt
Subject: Re: how can i drop a <unnamed> constraint
Date: 2003-02-25 15:23:18
Message-ID: 3E5B8A65.15F2E0A2@rodos.fzk.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Browse pgsql-sql by date

  From Date Subject
Next Message Tom Lane 2003-02-25 15:32:40 Re: STORAGE and GiST
Previous Message Itai Zukerman 2003-02-25 15:09:45 Polymorphic?