division by zero error in postgresql code example Example: postgres : ERROR: division by zero SELECT 1.0 / NULLIF(column_that_may_be_zero, 0)