Re: How to workaround DROP CONSTRAINT [ IF EXISTS ] in Postgres version 8.1?

From: Viktor Bojović <viktor(dot)bojovic(at)gmail(dot)com>
To: creationw <mr(dot)creation(dot)register(at)gmail(dot)com>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: How to workaround DROP CONSTRAINT [ IF EXISTS ] in Postgres version 8.1?
Date: 2011-02-04 08:33:21
Message-ID: AANLkTim-8QRhM35MEbyp7Gje0S9+YXm4G=ZCjAvRxAOs@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

use function which searches through this tables:

-pg_constraint
-pg_trigger

On Wed, Feb 2, 2011 at 11:21 PM, creationw
<mr(dot)creation(dot)register(at)gmail(dot)com>wrote:

>
> Hello,
>
>
> I found that DROP CONSTRAINT [ IF EXISTS ] is available in Postgres 9.1
> http://developer.postgresql.org/pgdocs/postgres/sql-altertable.html
> http://developer.postgresql.org/pgdocs/postgres/sql-altertable.html
>
>
> But it is not avaiable in Postgres 8.1
> http://www.postgresql.org/docs/8.1/interactive/sql-altertable.html
> http://www.postgresql.org/docs/8.1/interactive/sql-altertable.html
>
>
> Is there a way to achieve this on Postgres 8.1?
>
> Thanks a lot
> --
> View this message in context:
> http://postgresql.1045698.n5.nabble.com/How-to-workaround-DROP-CONSTRAINT-IF-EXISTS-in-Postgres-version-8-1-tp3368570p3368570.html
> Sent from the PostgreSQL - sql mailing list archive at Nabble.com.
>
> --
> Sent via pgsql-sql mailing list (pgsql-sql(at)postgresql(dot)org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-sql
>

--
---------------------------------------
Viktor Bojović
---------------------------------------
Wherever I go, Murphy goes with me

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Gerardo Herzig 2011-02-04 10:51:13 Re: using of select (myfunction()).* is so slow
Previous Message Pavel Stehule 2011-02-04 07:18:32 Re: how control update rows