I am using multiple PostgreSQL schemas to provide data separation and segmentation. There is a pretty good tutorial on how to do that here, but one thing I do not like about this approach is that it is absolutely reliant on the URL to select a schema (so, for example, if I wanted to run a local test server to test something, it would not be able to select the right schema by itself).
Do I have any other options for selecting schema based on URL/source? Would Amazon's Route 53 be of any help here (since I am very likely going to be using it)