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

From Tom Lane
Subject Re: Fwd: How does the partitioned lock manager works?
Date
Msg-id 9286.1177738286@sss.pgh.pa.us
Whole thread Raw
In response to Re: Fwd: 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
"rancpine cui" <rancpine@gmail.com> writes:
> So the method of calculating the bucket number can promise
> that all items in the bucket link list belong to ONE partition?

It's not that hard: the bucket number is some number of low-order bits
of the hash value, and the partition number is some smaller (or at most
equal) number of low-order bits of the hash value.
        regards, tom lane


pgsql-hackers by date:

Previous
From: "rancpine cui"
Date:
Subject: Re: Fwd: How does the partitioned lock manager works?
Next
From: "Cui Shijun"
Date:
Subject: Re: Fwd: How does the partitioned lock manager works?