1. pgpool 2 2. gridsql
which is a better way to use sharding
also is it possibl
pl/proxy (by Skype) is a good solution for this. It requires your access to be through a function API, but once you have that it can make it pretty transparent.