X-Original-To: pgsql-sql@postgresql.org Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 55185474E5C for ; Thu, 27 Feb 2003 05:15:37 -0500 (EST) Received: from postgresql.org ([64.49.215.8]) by localhost (postgresql.org [64.49.215.8:10024]) (amavisd-new) with SMTP id 80879-03 for ; Thu, 27 Feb 2003 05:15:26 -0500 (EST) Received: from fzkmail2.fzk.de (fzkmail2.fzk.de [141.52.27.52]) by postgresql.org (Postfix) with SMTP id BDE6E475A97 for ; Thu, 27 Feb 2003 05:13:13 -0500 (EST) Received: FROM resy5.fzk.de BY fzkmail2.fzk.de ; Thu Feb 27 11:13:14 2003 +0100 Received: œby rodos.fzk.de with ESMTP (8.8.6 (PHNE_17135)/8.7.1) id LAA11494; Thu, 27 Feb 2003 11:13:13 +0100 (MET) Message-ID: <3E5DE4B9.109AD730@rodos.fzk.de> Date: Thu, 27 Feb 2003 11:13:13 +0100 From: Christoph Haller X-Mailer: Mozilla 4.77 [en] (X11; U; HP-UX B.10.20 9000/780) X-Accept-Language: en MIME-Version: 1.0 To: pgsql-sql@postgresql.org Cc: rutes@eselx.ipl.pt Subject: Re: how can i drop a constraint Content-Type: text/plain; charset=iso-8859-2 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new X-Archive-Number: 200302/594 X-Sequence-Number: 11992 > > 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 ) ; > >