Revision 12304
Added by Aaron Marcuse-Kubitza almost 11 years ago
util.sql | ||
---|---|---|
2442 | 2442 |
|
2443 | 2443 |
|
2444 | 2444 |
-- |
2445 |
-- Name: schema_oid(text); Type: FUNCTION; Schema: util; Owner: - |
|
2446 |
-- |
|
2447 |
|
|
2448 |
CREATE FUNCTION schema_oid(schema text) RETURNS oid |
|
2449 |
LANGUAGE sql STABLE |
|
2450 |
AS $_$ |
|
2451 |
SELECT oid FROM pg_namespace WHERE nspname = $1 |
|
2452 |
$_$; |
|
2453 |
|
|
2454 |
|
|
2455 |
-- |
|
2445 | 2456 |
-- Name: schema_rename(text, text); Type: FUNCTION; Schema: util; Owner: - |
2446 | 2457 |
-- |
2447 | 2458 |
|
Also available in: Unified diff
schemas/util.sql: added schema_oid()