If a person receiving a pension or a retirement allowance made up of such pension and an annuity purchased by the pensioner from the city or any agency, or out of any fund under the city or any agency, by reason of such person's own prior employment by the city or any agency, shall hold and receive any compensation from any office, employment or position under the state or city or any of the counties included within the city or any municipal corporation or political subdivision of the state, except the offices of inspector of election, poll clerk or ballot clerk under the election law or commissioner of deeds or notary public or jury duty, the payment of said pension only shall be suspended and forfeited during and for the time such person shall hold and receive compensation from such office, position or employment; but this section shall not apply where the pension and the salary or compensation of the office, employment or position amount in the aggregate to less than one thousand eight hundred dollars annually.