Project

General

Profile

« Previous | Next » 

Revision 12457

schemas/util.sql: added is_explain()

View differences:

util.sql
1739 1739

  
1740 1740

  
1741 1741
--
1742
-- Name: is_explain(text); Type: FUNCTION; Schema: util; Owner: -
1743
--
1744

  
1745
CREATE FUNCTION is_explain(sql text) RETURNS boolean
1746
    LANGUAGE sql IMMUTABLE
1747
    AS $_$
1748
SELECT upper(util.first_word($1)) = 'EXPLAIN'
1749
$_$;
1750

  
1751

  
1752
--
1742 1753
-- Name: is_explainable(text); Type: FUNCTION; Schema: util; Owner: -
1743 1754
--
1744 1755

  

Also available in: Unified diff