Skip site navigation (1) Skip section navigation (2)

Peripheral Links

Header And Logo

PostgreSQL
| The world's most advanced open source database.

Site Navigation

Search archives
  Advanced Search

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

Privacy Policy | About PostgreSQL
Copyright © 1996 – 2012 PostgreSQL Global Development Group