pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: mallah@trade-india.com
To: reetz@usco.de
Cc: pgsql-admin@postgresql.org
Subject: Re: Dropping Foreign Key without recreating table
Date: Sun, 24 Nov 2002 19:35:48 +0530 (IST)
Message-ID: <49357.203.145.129.4.1038146748.squirrel@mail.trade-india.com> (raw)
In-Reply-To: <3DE0D886.4DE837BB@usco.de>
References: <3DE0D886.4DE837BB@usco.de>


since name of constrauint is in mixed cased
u must double quote  it in command. below will work.

psql> alter table mytable drop constraint "RI_ConstraintTrigger_17195" restrict  ;


> I wanted to change a foreign key to be deferrable (db version 7.2.1). During table creation I
> didn't specify a constraint name for the foreign key.
> "\d" shows a trigger RI_ConstraintTrigger_17195, however when I'm trying to "alter table
> mytable drop constraint RI_ConstraintTrigger_17195 restrict"  I'm getting the error "constraint
> does not exist.
> What am I doing wrong here? Or is there another simple solution to switch foreign keys to be
> deferrable?
>
> Regards
>
> Egon
>
>
>
> ---------------------------(end of broadcast)--------------------------- TIP 2: you can get off
> all lists at once with the unregister command
>    (send "unregister YourEmailAddressHere" to majordomo@postgresql.org)



-----------------------------------------
Get your free web based email at trade-india.com.
   "India's Leading B2B eMarketplace.!"
http://www.trade-india.com/





view thread (4+ messages)  latest in thread

Message-ID: <49357.203.145.129.4.1038146748.squirrel@mail.trade-india.com>
Permalink:  ../49357.203.145.129.4.1038146748.squirrel@mail.trade-india.com/
Also on:    postgresql.org/message-id/49357.203.145.129.4.1038146748.squirrel@mail.trade-india.com

 · 

reply

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: mallah@trade-india.com, reetz@usco.de
  Subject: Re: Dropping Foreign Key without recreating table
  In-Reply-To: <49357.203.145.129.4.1038146748.squirrel@mail.trade-india.com>
  References: <3DE0D886.4DE837BB@usco.de> <49357.203.145.129.4.1038146748.squirrel@mail.trade-india.com>

* 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