Re: partitioned table query question

Robert Treat <robert@omniti.com>

From: Robert Treat <robert@omniti.com>
To: pgsql-general@postgresql.org
Cc: Erik Jones <erik@myemma.com>, Tom Lane <tgl@sss.pgh.pa.us>, Mason Hale <masonhale@gmail.com>
Date: 2007-12-11T05:14:20Z
Lists: pgsql-hackers, pgsql-general
On Monday 10 December 2007 20:01, Erik Jones wrote:
> Again, though, is there some better way to go about implementing some
> kind of hash based partitioning in postgres besides this that would
> be more natural wrt queries?
>

One way is to set a static bin id for each partition, then do a select with 
where bin_id = mod(2112,3);   Where 2112 equals the number your looking for, 
and 3 would be the number of buckets. 

-- 
Robert Treat
http://www.omniti.com/
We're Big. On PostgreSQL.