Project

General

Profile

« Previous | Next » 

Revision 14211

schemas/util.sql: added derived_col_constraint_initially_enabled()

View differences:

trunk/schemas/util.sql
1714 1714

  
1715 1715

  
1716 1716
--
1717
-- Name: derived_col_constraint_initially_enabled(derived_col_def); Type: FUNCTION; Schema: util; Owner: -
1718
--
1719

  
1720
CREATE FUNCTION derived_col_constraint_initially_enabled(def derived_col_def) RETURNS boolean
1721
    LANGUAGE sql STABLE
1722
    AS $$
1723
SELECT NOT util.table_has_data((def).col.table_) -- empty, so would always pass
1724
$$;
1725

  
1726

  
1727
--
1717 1728
-- Name: derived_col_constraints_enable(regclass); Type: FUNCTION; Schema: util; Owner: -
1718 1729
--
1719 1730

  

Also available in: Unified diff