Project

General

Profile

« Previous | Next » 

Revision 12755

schemas/util.sql: added fold_explain_msg()

View differences:

trunk/schemas/util.sql
1685 1685

  
1686 1686

  
1687 1687
--
1688
-- Name: fold_explain_msg(text); Type: FUNCTION; Schema: util; Owner: -
1689
--
1690

  
1691
CREATE FUNCTION fold_explain_msg(explain text) RETURNS text
1692
    LANGUAGE sql IMMUTABLE
1693
    AS $_$
1694
SELECT (CASE WHEN util.first_word($1) = 'Result' THEN NULL ELSE $1 END)
1695
$_$;
1696

  
1697

  
1698
--
1688 1699
-- Name: force_recreate(text, text[]); Type: FUNCTION; Schema: util; Owner: -
1689 1700
--
1690 1701

  

Also available in: Unified diff