CREATE FUNCTION timestamp_row () RETURNS OPAQUE AS ' BEGIN NEW.timestamp := timeofday(); RETURN NEW; END; ' LANGUAGE 'plpgsql';