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-27 10:13:13
Message-ID: 3E5DE4B9.109AD730@rodos.fzk.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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 ) ;
> >

Browse pgsql-sql by date

  From Date Subject
Next Message Christoph Haller 2003-02-27 12:44:44 Re: Copy from a SELECT
Previous Message Rod Taylor 2003-02-27 01:30:19 Re: timestamp output as seconds since epoch?