From 24d5b91ebe7c04b45578083c4b96e587d2d14248 Mon Sep 17 00:00:00 2001 From: Graham Date: Sun, 21 Mar 2021 17:19:27 +0000 Subject: [PATCH] Mark functions as stable, strict and parallel safe Signed-off-by: Graham --- .../resources/org/openrs2/archive/migrations/V1__init.sql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/archive/src/main/resources/org/openrs2/archive/migrations/V1__init.sql b/archive/src/main/resources/org/openrs2/archive/migrations/V1__init.sql index 25a89ecbd4..d1bc975215 100644 --- a/archive/src/main/resources/org/openrs2/archive/migrations/V1__init.sql +++ b/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