add missed func to postgresql