missed a function in postgresql