Re: conditional dropping of columns/constraints - Mailing list pgsql-hackers

From Andres Freund
Subject Re: conditional dropping of columns/constraints
Date
Msg-id 4A01BB91.3000401@anarazel.de
Whole thread Raw
In response to conditional dropping of columns/constraints  (Andres Freund <andres@anarazel.de>)
Responses Re: conditional dropping of columns/constraints  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Hi,

On 05/04/2009 04:10 PM, Andres Freund wrote:
> Would a patch adding 'IF EXISTS' support to:
> - ALTER TABLE ... DROP COLUMN
> - ALTER TABLE ... DROP CONSTRAINT
> possibly be accepted?
A first version of a patch is attached:
- allows [ IF EXISTS ] for both, conditional dropping of columns and
constraints
- adds two tiny additions to the alter_table regression suite
- adds minimal documentation (my wording might be completely off)

As this is my first patch to PG I am happy with most sort of feedback.


Andres

Attachment

pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: text_pattern_ops and complex regexps
Next
From: David Fetter
Date:
Subject: Re: text_pattern_ops and complex regexps