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