Re: ENABLE/DISABLE CONSTRAINT NAME - Mailing list pgsql-hackers

From Fabien COELHO
Subject Re: ENABLE/DISABLE CONSTRAINT NAME
Date
Msg-id alpine.DEB.2.02.1308302052500.14562@localhost6.localdomain6
Whole thread Raw
In response to Re: ENABLE/DISABLE CONSTRAINT NAME  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
> Uh ... why not just drop the constraint, and re-add it later if you want
> it again?

My 0.02€ : maybe because you must keep track of the constraint details to 
do so, this it is significantly more error prone than disable / enable 
when the bookkeeping is done by the system and if everything is in a 
transaction... If the ENABLE is automatically done on the next COMMIT, 
that would be even better.

> This seems like adding a lot of mechanism (and possible bugs) for a 
> rather marginal use-case.

That is possible!

-- 
Fabien.

pgsql-hackers by date:

Previous
From: Andres Freund
Date:
Subject: Re: Freezing without write I/O
Next
From: Stephen Frost
Date:
Subject: Re: [v9.4] row level security