Relative partition function of Coulomb plus delta interaction