http://images.omniti.net/omniti.com/talks/partitions-public.pdf How to partition tables in postgresql