Revision 12659
Added by Aaron Marcuse-Kubitza almost 11 years ago
trunk/schemas/util.sql | ||
---|---|---|
2530 | 2530 |
|
2531 | 2531 |
|
2532 | 2532 |
-- |
2533 |
-- Name: parent(regclass); Type: FUNCTION; Schema: util; Owner: - |
|
2534 |
-- |
|
2535 |
|
|
2536 |
CREATE FUNCTION parent(table_ regclass) RETURNS regclass |
|
2537 |
LANGUAGE sql STABLE |
|
2538 |
AS $_$ |
|
2539 |
SELECT inhparent FROM pg_inherits WHERE inhrelid = $1 |
|
2540 |
$_$; |
|
2541 |
|
|
2542 |
|
|
2543 |
-- |
|
2533 | 2544 |
-- Name: populate_table(regclass, text); Type: FUNCTION; Schema: util; Owner: - |
2534 | 2545 |
-- |
2535 | 2546 |
|
Also available in: Unified diff
schemas/util.sql: added parent(regclass)