Revision 12575
Added by Aaron Marcuse-Kubitza almost 11 years ago
trunk/schemas/util.sql | ||
---|---|---|
2427 | 2427 |
|
2428 | 2428 |
|
2429 | 2429 |
-- |
2430 |
-- Name: prefixed_name(text, anyelement); Type: FUNCTION; Schema: util; Owner: - |
|
2431 |
-- |
|
2432 |
|
|
2433 |
CREATE FUNCTION prefixed_name(prefix text, type anyelement) RETURNS text |
|
2434 |
LANGUAGE sql IMMUTABLE |
|
2435 |
AS $_$ |
|
2436 |
SELECT util.qual_name(util.schema($2), $1||util.name($2)) |
|
2437 |
$_$; |
|
2438 |
|
|
2439 |
|
|
2440 |
-- |
|
2430 | 2441 |
-- Name: prepend_comment(regclass, text); Type: FUNCTION; Schema: util; Owner: - |
2431 | 2442 |
-- |
2432 | 2443 |
|
Also available in: Unified diff
schemas/util.sql: added prefixed_name()