fixed typo and did some optimisation regarding postgresql client installation [ci skip]