From af142306aa32731f694856cff7f5b9839a95b72d Mon Sep 17 00:00:00 2001 From: Rafa de la Torre Date: Tue, 3 Jul 2018 15:26:48 +0200 Subject: [PATCH] Mark `_CDB_Table_Exists()` as PARALLEL UNSAFE As pointed out by Algunenano, PL/pgSQL function which establishes an EXCEPTION block to catch errors must be qualified with it. --- scripts-available/CDB_Helper.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts-available/CDB_Helper.sql b/scripts-available/CDB_Helper.sql index 55f5f19..f582308 100644 --- a/scripts-available/CDB_Helper.sql +++ b/scripts-available/CDB_Helper.sql @@ -175,4 +175,4 @@ EXCEPTION WHEN invalid_schema_name OR undefined_table THEN RETURN false; END; -$$ LANGUAGE PLPGSQL VOLATILE PARALLEL SAFE; +$$ LANGUAGE PLPGSQL VOLATILE PARALLEL UNSAFE;