Convert psql's pretty printed table format into a csv