Revision 12329
Added by Aaron Marcuse-Kubitza almost 11 years ago
util.sql | ||
---|---|---|
1579 | 1579 |
|
1580 | 1580 |
|
1581 | 1581 |
-- |
1582 |
-- Name: is_view(regclass); Type: FUNCTION; Schema: util; Owner: - |
|
1583 |
-- |
|
1584 |
|
|
1585 |
CREATE FUNCTION is_view(relation regclass) RETURNS boolean |
|
1586 |
LANGUAGE sql IMMUTABLE |
|
1587 |
AS $_$ |
|
1588 |
SELECT relkind = 'v' FROM pg_class WHERE oid = $1 |
|
1589 |
$_$; |
|
1590 |
|
|
1591 |
|
|
1592 |
-- |
|
1582 | 1593 |
-- Name: join_strs_transform(text, text, text); Type: FUNCTION; Schema: util; Owner: - |
1583 | 1594 |
-- |
1584 | 1595 |
|
Also available in: Unified diff
schemas/util.sql: added is_view()