(d)"compensation pension" means if an officer is selected for discharge owing to the abolition of a permanent post, he shall, unless he is appointed to another post, the conditions of which are deemed by authority competent to discharge him to be at least equal to those of his own, have the option-