Another alternative to building a new config every time is to have one configuration file per Primary and just use a symbolic link to specify the correct one. One RELOAD later, and you're done. -- Shaun M Thomas - 2ndQuadrant PostgreSQL Training, Services and Support shaun.thomas@xxxxxxxxxxxxxxx | www.2ndQuadrant.com