Convert specific value to Null in PostgreSQL

NULLIF(input_value, '')

This example converts the empty string in input_value to NULL.