Fix for new postgresql version