Project

General

Profile

« Previous | Next » 

Revision 12661

schemas/util.sql: added freq_always_1(regclass[])

View differences:

trunk/schemas/util.sql
1728 1728

  
1729 1729

  
1730 1730
--
1731
-- Name: freq_always_1(regclass[], text); Type: FUNCTION; Schema: util; Owner: -
1732
--
1733

  
1734
CREATE FUNCTION freq_always_1(tables regclass[], freq_col text DEFAULT 'copies'::text) RETURNS boolean
1735
    LANGUAGE sql STABLE
1736
    AS $_$
1737
SELECT bool_and(util.freq_always_1(table_, $2)) FROM unnest($1) table_
1738
$_$;
1739

  
1740

  
1741
--
1731 1742
-- Name: grants_users(); Type: FUNCTION; Schema: util; Owner: -
1732 1743
--
1733 1744

  

Also available in: Unified diff