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: 2007-04-28 05:31:26
Message-ID: 9286.1177738286@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

"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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Cui Shijun 2007-04-28 06:10:33 Re: Fwd: How does the partitioned lock manager works?
Previous Message rancpine cui 2007-04-28 00:58:31 Re: Fwd: How does the partitioned lock manager works?