Some PL/pgSQL functions that facilitate lazily materializing views on an interval.