I am trying to migrate an oracle DB application to postgres. I can't seem to find an equivalent of NANVL in postgres. Is there a way to emulate the same ?
From the Oracle manual:
The NANVL function is useful only for floating-point numbers of type BINARY_FLOAT or BINARY_DOUBLE. It instructs Oracle Database to return an alternative value n1 if the input value n2 is NaN (not a number). If n2 is not NaN, then Oracle returns n2.