postgres and formatting