Fwd: How does the partitioned lock manager works? - Mailing list pgsql-hackers

From rancpine cui
Subject Fwd: How does the partitioned lock manager works?
Date
Msg-id 306760850704270632k4968e6a8i94de637b52a94f99@mail.gmail.com
Whole thread Raw
In response to How does the partitioned lock manager works?  ("rancpine cui" <rancpine@gmail.com>)
Responses Re: Fwd: How does the partitioned lock manager works?
List pgsql-hackers
<br /><br />---------- Forwarded message ----------<br /><span class="gmail_quote">From: <b
class="gmail_sendername">rancpinecui</b> <<a href="mailto:rancpine@gmail.com">rancpine@gmail.com</a>><br />Date:
2007-4-27下午9:22<br /> Subject: Re: [HACKERS] How does the partitioned lock manager works?<br />To: Heikki Linnakangas
<<ahref="mailto:heikki@enterprisedb.com">heikki@enterprisedb.com</a>><br /><br /></span>Thanks for your reply.
:-)<br/>I've seen from the README that <br />"The shared-memory hash tables for LOCKs and PROCLOCKs are organized<br
/>sothat different partitions use different hash chains, and thus there<br />is no conflict in working with objects in
differentpartitions." <br />   What does "hash chains" mean?<br />   As the dynahash.c's "partitioned table" mechanism
suggests,a lock's<br />bucket number can be calculated from its hash value, then it will be<br />inserted into that
bucket,sohow does partition number works? <br />   Is it only a flag which suggests the partition the lock belongs to
when<br/>we want to use that lock? I can't find a way to manage locks via partition...<br /> 

pgsql-hackers by date:

Previous
From: Heikki Linnakangas
Date:
Subject: Re: Avoiding unnecessary reads in recovery
Next
From: Alvaro Herrera
Date:
Subject: Re: Fwd: How does the partitioned lock manager works?