added custom definitions for postgresql