I've heard it said in the past that a pastor should not have really close friendships with people in their own congregation. That if they do, then others may assume the pastor is showing favoritism. Is that a legitimate concern or is it an overblown worry?
I'm not a pastor myself, but I personally think that everybody in the church should make an effort to develop really close friendships with the other people in church, and that would include the pastor.
Yet I also know that close friends share their troubles with each other, and a pastor's troubles may involve their own church situations. A pastor would have to be really careful about the kinds of troubles they may share with close friends within their own congregation.