Adds support for Postgresql 9.1+