Project

General

Profile

« Previous | Next » 

Revision 12488

schemas/util.sql: use_own_schema(): auto-append util to the search_path to enable use of util operators

View differences:

trunk/schemas/util.sql
3512 3512
CREATE FUNCTION use_own_schema(schema_anchor anyelement) RETURNS void
3513 3513
    LANGUAGE sql
3514 3514
    AS $_$
3515
SELECT util.set_search_path(util.schema_esc($1))
3515
SELECT util.set_search_path(util.mk_search_path(util.schema($1)))
3516 3516
$_$;
3517 3517

  
3518 3518

  
3519 3519
--
3520
-- Name: FUNCTION use_own_schema(schema_anchor anyelement); Type: COMMENT; Schema: util; Owner: -
3521
--
3522

  
3523
COMMENT ON FUNCTION use_own_schema(schema_anchor anyelement) IS '
3524
auto-appends util to the search_path to enable use of util operators
3525
';
3526

  
3527

  
3528
--
3520 3529
-- Name: all_same(anyelement); Type: AGGREGATE; Schema: util; Owner: -
3521 3530
--
3522 3531

  

Also available in: Unified diff