Try to fix postgresql doesn’t support ifnull function issue