When using psql, null values are returned as an empty string by default.
This can easily be changed with the \pset
command, so it could be a value other than the default empty string.
If you’re not sure what your current value is, you can use the show \pset null
command to show the current value.