create function f() returns void as $$
BEGIN
IF NOT EXISTS (...) THEN
EXECUTE ...;
END IF;
END;
$$ language plpgsql;
select f();
create function f() returns void as $$
BEGIN
IF NOT EXISTS (...) THEN
EXECUTE ...;
END IF;
END;
$$ language plpgsql;
select f();