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

From Jeff Davis
Subject Re: ENABLE/DISABLE CONSTRAINT NAME
Date
Msg-id 1378161777.21540.86.camel@jdavis
Whole thread Raw
In response to ENABLE/DISABLE CONSTRAINT NAME  (wangshuo@highgo.com.cn)
Responses Re: ENABLE/DISABLE CONSTRAINT NAME
List pgsql-hackers
On Fri, 2013-08-30 at 09:57 +0800, wangshuo@highgo.com.cn wrote:
> Hi hackers,
> 
>        In order to achieve enable/disable constraint name,I made ​​a few 
> modifications to the code.
> 
>        First, someone used to build the constraints while building 
> table. Then inserting data must follow a certain order.
>        And people usually like to insert the data but not affected by 
> foreign keys or check.

Is there any semantic difference between marking a constraint as
DISABLED and simply dropping it? Or does it just make it easier to
re-add it later?

Regards,Jeff Davis





pgsql-hackers by date:

Previous
From: Peter Geoghegan
Date:
Subject: Re: INSERT...ON DUPLICATE KEY IGNORE
Next
From: Andres Freund
Date:
Subject: Re: dynamic shared memory