Re: [HACKERS] [GENERAL] Not your father's question about deadlocks

2006-11-16 Thread Gurjeet Singh
On 11/17/06, Tom Lane <[EMAIL PROTECTED]> wrote: "Gurjeet Singh" <[EMAIL PROTECTED]> writes: > Small implementation detail: Also keep a count of how many times the same > session requested the same lock, and do not release the lock until he > requests same number of releases. No need for that,

Re: [HACKERS] [GENERAL] Not your father's question about deadlocks

2006-11-16 Thread Tom Lane
"Gurjeet Singh" <[EMAIL PROTECTED]> writes: > On 11/17/06, Tom Lane <[EMAIL PROTECTED]> wrote: >> we need a special case when we are already a member of the MultiXact: >> fall through without trying to reacquire the tuple lock. > Small implementation detail: Also keep a count of how many times the

Re: [HACKERS] [GENERAL] Not your father's question about deadlocks

2006-11-16 Thread Gurjeet Singh
On 11/17/06, Tom Lane <[EMAIL PROTECTED]> wrote: we need a special case when we are already a member of the MultiXact: fall through without trying to reacquire the tuple lock. Small implementation detail: Also keep a count of how many times the same session requested the same lock, and do not