Re: [SQL] ALTER TABLE ... DROP CONSTRAINT - Mailing list pgsql-general

From Rajesh Kumar Mallah
Subject Re: [SQL] ALTER TABLE ... DROP CONSTRAINT
Date
Msg-id 3F281B9E.1050804@trade-india.com
Whole thread
In response to ALTER TABLE ... DROP CONSTRAINT  (Elielson Fontanezi <ElielsonF@prodam.sp.gov.br>)
List pgsql-general
if the constraint are named $1 $2 etc you will need to quote them eg

ALTER TABLE xyz DROP CONSTRAINT "$1" ;

in some version you may require

ALTER TABLE xyz DROP CONSTRAINT "$1"  RESTRICT;

What is ur version btw?

try to post the table structure also.

regds mallah.

Elielson Fontanezi wrote:

> Hi all!
>
>     Who can tell me what postgres version supports ALTER TABLE... DROP
> CONSTRAINT without
> the need of droping the table to remove a simple coinstraint. (link)
>
>                                    >\\\!/<     55 11 5080 9283
>                                    !_"""_!     Elielson Fontanezi
>                                    (O) (o)     PRODAM - Technical
> Support Analyst
> -------------------------------oOOO--(_)--OOOo-----------------------------------
>      Success usually comes to those who are too busy to be looking for it.
>                             oooo0          0oooo
> ---------------------------(    )----------(
> )--------------------------------
>                             \  (            )  /
>                              \_/            \_/
>
>




pgsql-general by date:

Previous
From: Michael Govorun
Date:
Subject: Re: Don't removes/recycles WAL files at all
Next
From: Richard Huxton
Date:
Subject: Re: Don't removes/recycles WAL files at all