I saw that a hundred times at a small school district in Southern California. As retirement nears (age 55-59), take a promotion from the classroom to the district office, and a $50-75K pay raise. Three years later, that is the salary used to calculate your pension payments... For life.
I live in a neighborhood with two firefighters who were captains, retired at 50, and make over $100K a year. It's totally unsustainable.