Revision 12588
Added by Aaron Marcuse-Kubitza almost 11 years ago
util.sql | ||
---|---|---|
2677 | 2677 |
|
2678 | 2678 |
|
2679 | 2679 |
-- |
2680 |
-- Name: relation_type(regtype); Type: FUNCTION; Schema: util; Owner: - |
|
2681 |
-- |
|
2682 |
|
|
2683 |
CREATE FUNCTION relation_type(type regtype) RETURNS text |
|
2684 |
LANGUAGE sql IMMUTABLE |
|
2685 |
AS $$ |
|
2686 |
SELECT 'TYPE'::text |
|
2687 |
$$; |
|
2688 |
|
|
2689 |
|
|
2690 |
-- |
|
2680 | 2691 |
-- Name: relation_type_char(regclass); Type: FUNCTION; Schema: util; Owner: - |
2681 | 2692 |
-- |
2682 | 2693 |
|
Also available in: Unified diff
schemas/util.sql: added relation_type(regtype) so drop_relation() would work on TYPEs, too. TYPEs are sometimes used as a function return type linked to a particular table (eg. in the keys() functions), and should be dropped along with the table by util.drop_relations_like().