From: Christoph Haller <ch@rodos.fzk.de>
To: pgsql-sql@postgresql.org
Cc: rutes@eselx.ipl.pt
Subject: Re: how can i drop a <unnamed> constraint
Date: Thu, 27 Feb 2003 11:13:13 +0100
Message-ID: <3E5DE4B9.109AD730@rodos.fzk.de> (raw)
>
> 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 ) ;
> >
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: ch@rodos.fzk.de, rutes@eselx.ipl.pt
Subject: Re: how can i drop a <unnamed> constraint
In-Reply-To: <3E5DE4B9.109AD730@rodos.fzk.de>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox