Revision 8150
Added by Aaron Marcuse-Kubitza over 11 years ago
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
schemas/functions.sql: Added map_values()