Project

General

Profile

« Previous | Next » 

Revision 13446

schemas/util.sql: added debug_print_value()

View differences:

util.sql
1102 1102

  
1103 1103

  
1104 1104
--
1105
-- Name: debug_print_value(text, anyelement, boolean); Type: FUNCTION; Schema: util; Owner: -
1106
--
1107

  
1108
CREATE FUNCTION debug_print_value(label text, value anyelement, encode boolean DEFAULT false) RETURNS void
1109
    LANGUAGE sql IMMUTABLE
1110
    AS $_$
1111
SELECT util.raise('NOTICE', concat($1,
1112
(CASE WHEN $3 THEN util.quote_typed($2) ELSE $2::text END)))
1113
$_$;
1114

  
1115

  
1116
--
1105 1117
-- Name: derived_cols(regclass, regclass); Type: FUNCTION; Schema: util; Owner: -
1106 1118
--
1107 1119

  

Also available in: Unified diff