Revision 12493
Added by Aaron Marcuse-Kubitza almost 11 years ago
trunk/schemas/util.sql | ||
---|---|---|
2104 | 2104 |
|
2105 | 2105 |
|
2106 | 2106 |
-- |
2107 |
-- Name: mk_set_search_path(text[]); Type: FUNCTION; Schema: util; Owner: - |
|
2108 |
-- |
|
2109 |
|
|
2110 |
CREATE FUNCTION mk_set_search_path(VARIADIC schemas text[]) RETURNS text |
|
2111 |
LANGUAGE sql IMMUTABLE |
|
2112 |
AS $_$ |
|
2113 |
SELECT util.mk_set_search_path(util.mk_search_path(VARIADIC $1)) |
|
2114 |
$_$; |
|
2115 |
|
|
2116 |
|
|
2117 |
-- |
|
2118 |
-- Name: FUNCTION mk_set_search_path(VARIADIC schemas text[]); Type: COMMENT; Schema: util; Owner: - |
|
2119 |
-- |
|
2120 |
|
|
2121 |
COMMENT ON FUNCTION mk_set_search_path(VARIADIC schemas text[]) IS ' |
|
2122 |
usage: |
|
2123 |
for *1* schema arg: |
|
2124 |
SELECT util.mk_set_search_path(''schema'', NULL) AS search_path; |
|
2125 |
-- 2 params are needed to use the correct variant of mk_set_search_path() |
|
2126 |
|
|
2127 |
auto-appends util to the search_path to enable use of util operators |
|
2128 |
'; |
|
2129 |
|
|
2130 |
|
|
2131 |
-- |
|
2132 | 2107 |
-- Name: mk_set_search_path(boolean); Type: FUNCTION; Schema: util; Owner: - |
2133 | 2108 |
-- |
2134 | 2109 |
|
Also available in: Unified diff
schemas/util.sql: removed no longer used mk_set_search_path(VARIADIC schemas text[]). use mk_search_path() instead.