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 3E5DE4B9.109AD730@rodos.fzk.de
Whole thread Raw
In response to how can i drop a constraint  (rute solipa <rutes@eselx.ipl.pt>)
List pgsql-sql
>
> but with this query i only get the name from constraints type check ,
i
> need to get the names of all constraints types.

Not sure what exactly do you mean by this.
Have you done a SELECT * FROM pg_relcheck ;
to see what's all in there? Maybe an example would help.
>
> by the way, how can i disable constraints.

Within ALTER TABLE you can DROP constraints, I don't know if
there is a feature to temporarily disable constraints.
>
You should post to the list too. I'm not the expert on constraints.

Regards, Christoph

>
> At 04:23 PM 2/25/2003 +0100, you wrote:
> > >
> > > >
> > > > 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 ) ;
> >




pgsql-sql by date:

Previous
From: Rod Taylor
Date:
Subject: Re: timestamp output as seconds since epoch?
Next
From: Christoph Haller
Date:
Subject: Re: Copy from a SELECT