From 94089c6f85b11e23531f4b9ce4165ba5f10a4af9 Mon Sep 17 00:00:00 2001
From: Olivier Maury <Olivier.Maury@inrae.fr>
Date: Tue, 4 Jun 2024 10:46:40 +0200
Subject: [PATCH] =?UTF-8?q?Utilisation=20d'une=20fonction=20pour=20rafra?=
 =?UTF-8?q?=C3=AEchir=20la=20vue=20mat=C3=A9rialis=C3=A9e.=20fixes=20#10?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 sql/schema.functions.sql | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sql/schema.functions.sql b/sql/schema.functions.sql
index a49bbea..cc1b892 100644
--- a/sql/schema.functions.sql
+++ b/sql/schema.functions.sql
@@ -25,7 +25,7 @@ ON CONFLICT ON CONSTRAINT "UK_dailyvalue" DO
 UPDATE SET computedvalue=EXCLUDED.computedvalue, comparedvalue=EXCLUDED.comparedvalue, created=CURRENT_TIMESTAMP;
 $$, tablename);
   EXECUTE sql;
-  REFRESH MATERIALIZED VIEW v_pra_dailyvalue;
+  PERFORM agrometinfo.refresh_materialized_view();
 END;
 $BODY$
   LANGUAGE plpgsql VOLATILE
-- 
GitLab