Many synagogues have a sign saying "No talking in shul", or some variation thereof.
But really, the fact is you are required to talk in shul! The signs should really say "No conversations in shul, except with God".
Perhaps people would refrain from talking to their neighbors, if they realized the impoliteness of repeatedly interrupting one conversation in order to engage in others.