change postgres flag order