special fix for postgresql