CREATE OR REPLACE FUNCTION ifnull(value anyelement, null_ anyelement) RETURNS anyelement AS $BODY$ SELECT util.ifnull($1, $2) $BODY$ LANGUAGE sql IMMUTABLE COST 100; COMMENT ON FUNCTION ifnull(anyelement, anyelement) IS ' wrapper that prevents views from getting dropped when the util schema is reinstalled ';