Re: CIC and deadlocks - Mailing list pgsql-hackers

From Pavan Deolasee
Subject Re: CIC and deadlocks
Date
Msg-id 461A4534.70601@enterprisedb.com
Whole thread Raw
In response to Re: CIC and deadlocks  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: CIC and deadlocks  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Tom Lane wrote:> "Pavan Deolasee" <pavan.deolasee@gmail.com> writes:>> Good point.  I'm envisioning a procarray.c
functionalong the> lines of>     bool TransactionHasSnapshot(xid)> which returns true if the xid is currently listed in
PGPROC>and has a nonzero xmin.  CIC's cleanup wait loop would check> this and ignore the xid if it returns false.  Your
pointmeans> that this function would have to take exclusive not shared lock> while scanning the procarray, which is
kindof annoying, but> it seems not fatal since CIC isn't done all that frequently.>
 

Tom,

If you haven't finished this yet, would you like me to work
on this ? If I do it, I would mostly follow the path you
suggested above, unless I run into something else.

Thanks,
Pavan

-- 


EnterpriseDB        http://www.enterprisedb.com



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: [PATCHES] Arrays of Complex Types
Next
From: "Shaunak Godbole"
Date:
Subject: Query