Re: Fwd: How does the partitioned lock manager works?
- From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
- To: "rancpine cui" <rancpine(at)gmail(dot)com>
- Cc: pgsql-hackers(at)postgresql(dot)org
- Subject: Re: Fwd: How does the partitioned lock manager works?
- Date: Sat, 28 Apr 2007 01:31:26 -0400
- Message-id: <9286.1177738286@sss.pgh.pa.us> <text/plain>
"rancpine cui" <rancpine(at)gmail(dot)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
Home |
Main Index |
Thread Index