modification to support postgresql 9.4