postgresql part two formating