more robust postgres conf