Change "whenpsg" to type numeric.