Generalization to provide more flexibility in postgresql configuration