Mark functions as stable, strict and parallel safe

Signed-off-by: Graham <gpe@openrs2.org>
Graham 4 years ago
parent cba34b54c9
commit 24d5b91ebe
  1. 4
      archive/src/main/resources/org/openrs2/archive/migrations/V1__init.sql

@ -180,7 +180,7 @@ BEGIN
RETURN resolved;
END;
$$ LANGUAGE plpgsql;
$$ LANGUAGE plpgsql STABLE STRICT PARALLEL SAFE;
CREATE FUNCTION resolve_group(archive_id uint1, group_id INTEGER, crc32 INTEGER, version INTEGER) RETURNS containers AS $$
#variable_conflict use_variable
@ -211,7 +211,7 @@ BEGIN
RETURN resolved;
END;
$$ LANGUAGE plpgsql;
$$ LANGUAGE plpgsql STABLE STRICT PARALLEL SAFE;
CREATE VIEW resolved_indexes AS
SELECT m.id AS master_index_id, a.archive_id, c.data, c.id AS container_id

Loading…
Cancel
Save