While studying 1 Corinthians I put this together. I hope it helps you understand how to treat your pastor.
There once was a man with loose screws. God graciously gave him a screw driver in order to tighten those screws. But instead of using that screw driver as God intended the man went around bragging that his screw driver was better than all others. This man’s problems became more pronounced because he would not use the tool that God had given for the end that God had given it. He treated the screw driver like a trophy and did not use it as a tool. In the same sense, apostles, prophets, evangelists, shepherds, and teachers have been given to the church in order to equip the church. If we glory in men and worship men we are using what God has given for the wrong purpose. Teachers are tools to be used not trophies to brag about.
So let no one boast in men. For all things are yours, whether Paul or Apollos or Cephas or the world or life or death or the present or the future–all are yours, and you are Christ’s, and Christ is God’s. 1 Corinthians 3:21-23