Project

General

Profile

« Previous | Next » 

Revision 8150

schemas/functions.sql: Added map_values()

View differences:

schemas/functions.sql
656 656

  
657 657

  
658 658
--
659
-- Name: map_values(regclass); Type: FUNCTION; Schema: functions; Owner: -
660
--
661

  
662
CREATE FUNCTION map_values(map regclass) RETURNS SETOF text
663
    LANGUAGE plpgsql STABLE STRICT
664
    AS $_$
665
BEGIN
666
    RETURN QUERY EXECUTE $$SELECT "to" FROM $$||map;
667
END;
668
$_$;
669

  
670

  
671
--
659 672
-- Name: mk_map_table(text); Type: FUNCTION; Schema: functions; Owner: -
660 673
--
661 674

  

Also available in: Unified diff