How to workaround DROP CONSTRAINT [ IF EXISTS ] in Postgres version 8.1? - Mailing list pgsql-sql

From creationw
Subject How to workaround DROP CONSTRAINT [ IF EXISTS ] in Postgres version 8.1?
Date
Msg-id 1296685303841-3368570.post@n5.nabble.com
Whole thread Raw
Responses Re: How to workaround DROP CONSTRAINT [ IF EXISTS ] in Postgres version 8.1?  (Viktor Bojović <viktor.bojovic@gmail.com>)
List pgsql-sql
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.


pgsql-sql by date:

Previous
From: creationw
Date:
Subject: How to checking the existance of constraints for a table?
Next
From: "Sabin Coanda"
Date:
Subject: out of shared memory - find temporary tables