Project

General

Profile

« Previous | Next » 

Revision 11832

schemas/util.sql: added explain2str()

View differences:

schemas/util.sql
1104 1104

  
1105 1105

  
1106 1106
--
1107
-- Name: explain2str(text); Type: FUNCTION; Schema: util; Owner: -
1108
--
1109

  
1110
CREATE FUNCTION explain2str(sql text) RETURNS text
1111
    LANGUAGE sql
1112
    AS $_$
1113
SELECT util.join_strs(explain, $$
1114
$$) FROM util.explain($1)
1115
$_$;
1116

  
1117

  
1118
--
1107 1119
-- Name: explain2table(regclass, text); Type: FUNCTION; Schema: util; Owner: -
1108 1120
--
1109 1121

  

Also available in: Unified diff