Revision 12375
Added by Aaron Marcuse-Kubitza almost 11 years ago
trunk/schemas/util.sql | ||
---|---|---|
2325 | 2325 |
|
2326 | 2326 |
|
2327 | 2327 |
-- |
2328 |
-- Name: regprocedure(text); Type: FUNCTION; Schema: util; Owner: - |
|
2329 |
-- |
|
2330 |
|
|
2331 |
CREATE FUNCTION regprocedure(func text) RETURNS regprocedure |
|
2332 |
LANGUAGE sql IMMUTABLE |
|
2333 |
AS $_$ |
|
2334 |
SELECT (CASE WHEN right($1, 1) = ')' |
|
2335 |
THEN $1::regprocedure ELSE util.regprocedure($1::regproc) END) |
|
2336 |
$_$; |
|
2337 |
|
|
2338 |
|
|
2339 |
-- |
|
2328 | 2340 |
-- Name: relation_type(regclass); Type: FUNCTION; Schema: util; Owner: - |
2329 | 2341 |
-- |
2330 | 2342 |
|
Also available in: Unified diff
schemas/util.sql: added regprocedure(text)