Foreign key locks

Started by Ulrich Wisserover 21 years ago3 messagesgeneral
Jump to latest
#1Ulrich Wisser
ulrich.wisser@relevanttraffic.se

Hi,

yes, I have been hit by the, now also known to me, foreign key locking
"feature". And yes I did read that I should use "defer" to solve the
problem. Question is:

Do I have to recreate my schema with all foreign keys set to "initially
defered deferable"?

Ulrich

#2Stephan Szabo
sszabo@megazone23.bigpanda.com
In reply to: Ulrich Wisser (#1)
Re: Foreign key locks

On Thu, 2 Sep 2004, Ulrich Wisser wrote:

yes, I have been hit by the, now also known to me, foreign key locking
"feature". And yes I did read that I should use "defer" to solve the
problem. Question is:

Do I have to recreate my schema with all foreign keys set to "initially
defered deferable"?

You really should just need to drop the constraints and recreate them, not
the entire schema.

#3Vivek Khera
khera@kcilink.com
In reply to: Ulrich Wisser (#1)
Re: Foreign key locks

"SS" == Stephan Szabo <sszabo@megazone.bigpanda.com> writes:

SS> You really should just need to drop the constraints and recreate them, not
SS> the entire schema.

So do I want to do deferred checks on all transactions, or just
some/one of them? I'm assuming that if the advice is to make them
initally deferred that means all of them, but I wanted to be sure.

Thanks!

--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Vivek Khera, Ph.D. Khera Communications, Inc.
Internet: khera@kciLink.com Rockville, MD +1-301-869-4449 x806
AIM: vivekkhera Y!: vivek_khera http://www.khera.org/~vivek/