Added postgresql functions and type
Merge remote-tracking branch 'origin/master'