Fix to work with pg >= 2.8.2