Re: constraints

  • From: gints.plivna@xxxxxxxxx
  • To: "Brian.Zelli@xxxxxxxxxxxxxxx" <Brian.Zelli@xxxxxxxxxxxxxxx>
  • Date: Thu, 14 Aug 2014 15:24:17 +0300

We have used deferred constraints a few times instead of immediate constraints. 
But only because the logic could be violated during the transaction. The main 
thing is to remember that in case of deferred constraint violation all 
transaction will be rolled back, not only last statement. Sometimes it matters, 
especially in case the transaction is big or logic complex...

Gints

On 2014. gada 14. aug., at 14:50, "Zelli, Brian" <Brian.Zelli@xxxxxxxxxxxxxxx> 
wrote:

> I have a developer who wants me to disable or defer constraints while he does 
> updates.  I said no to disable since many of the tables have 4 or 5 
> constraints. 
> But what about deferring?  Pros/cons?  I have never used it.  What would be 
> the harm?  This is in a Dev environment.
>  
>  
> Brian
>  
>  
> 
> This email message may contain legally privileged and/or confidential 
> information. If you are not the intended recipient(s), or the employee or 
> agent responsible for the delivery of this message to the intended 
> recipient(s), you are hereby notified that any disclosure, copying, 
> distribution, or use of this email message is prohibited. If you have 
> received this message in error, please notify the sender immediately by 
> e-mail and delete this email message from your computer. Thank you.

Other related posts: