ERROR: division by zero while performing in psql code example Example: postgres : ERROR: division by zero SELECT 1.0 / NULLIF(column_that_may_be_zero, 0)