pedantry; showing off one's learning; pedantic disposition
Often used critically to describe someone who flaunts knowledge unnecessarily or takes pleasure in obscure facts. Can refer to the act or the personality trait.
His talk is always full of pedantry, and it gets tiresome to listen to.
People with a pedantic disposition tend to show off their knowledge.