\set ECHO none \pset format unaligned SET search_path TO provsql_test,provsql; /* The security semiring */ CREATE FUNCTION security_min_state(state classification_level, level classification_level) RETURNS classification_level AS $$ SELECT CASE WHEN state IS NULL THEN level WHEN state