Revision 13492
Added by Aaron Marcuse-Kubitza over 10 years ago
trunk/schemas/util.sql | ||
---|---|---|
3078 | 3078 |
|
3079 | 3079 |
|
3080 | 3080 |
-- |
3081 |
-- Name: relation_exists(text); Type: FUNCTION; Schema: util; Owner: - |
|
3082 |
-- |
|
3083 |
|
|
3084 |
CREATE FUNCTION relation_exists(relation text) RETURNS boolean |
|
3085 |
LANGUAGE sql STABLE |
|
3086 |
AS $_$ |
|
3087 |
SELECT $1 IS NOT NULL AND util.is_castable($1, NULL::regclass) |
|
3088 |
$_$; |
|
3089 |
|
|
3090 |
|
|
3091 |
-- |
|
3081 | 3092 |
-- Name: relation_type(regclass); Type: FUNCTION; Schema: util; Owner: - |
3082 | 3093 |
-- |
3083 | 3094 |
|
Also available in: Unified diff
schemas/util.sql: added relation_exists()