1
-- Copyright 2011 Canonical Ltd. This software is licensed under the
2
-- GNU Affero General Public License version 3 (see the file LICENSE).
4
SET client_min_messages=ERROR;
7
CREATE OR REPLACE FUNCTION bug_summary_flush_temp_journal() RETURNS VOID
8
LANGUAGE plpgsql VOLATILE AS
13
-- may get called even though no summaries were made (for simplicity in the
15
PERFORM ensure_bugsummary_temp_journal();
16
FOR d IN SELECT * FROM bugsummary_temp_journal LOOP
17
PERFORM bugsummary_journal_ins(d);
19
TRUNCATE bugsummary_temp_journal;
23
COMMENT ON FUNCTION bug_summary_flush_temp_journal() IS
24
'flush the temporary bugsummary journal into the bugsummaryjournal table';
27
INSERT INTO LaunchpadDatabaseRevision VALUES (2208, 75, 1);