   INSERT INTO measurement_y2008m01 VALUES (NEW.*);
    RETURN NULL;
END;
$$
LANGUAGE plpgsql;
</pre><p>
        </p><p>
         After creating the function, we create a trigger which
         calls the trigger function:

</p><pre class="programlisting">
CREATE TRIGGER insert_measurement_trigger
    BEFORE INSERT ON measurement
    FOR EACH ROW EXECUTE FUNCTION measurement_insert_trigger();
</pre><p>

         We must redefine the trigger function each month so that it always
         inserts into the curr