Revision 8097
Added by Aaron Marcuse-Kubitza over 11 years ago
schemas/functions.sql | ||
---|---|---|
480 | 480 |
-- |
481 | 481 |
|
482 | 482 |
CREATE FUNCTION col_global_names(type regtype, OUT name text, OUT global_name text) RETURNS SETOF record |
483 |
LANGUAGE plpgsql STABLE |
|
483 |
LANGUAGE plpgsql STABLE STRICT
|
|
484 | 484 |
AS $$ |
485 | 485 |
DECLARE |
486 | 486 |
prefix text := functions.name(type)||'.'; |
... | ... | |
497 | 497 |
-- |
498 | 498 |
|
499 | 499 |
CREATE FUNCTION col_names(type regtype) RETURNS SETOF text |
500 |
LANGUAGE plpgsql STABLE |
|
500 |
LANGUAGE plpgsql STABLE STRICT
|
|
501 | 501 |
AS $_$ |
502 | 502 |
BEGIN |
503 | 503 |
RETURN QUERY EXECUTE $$SELECT skeys(hstore(NULL::$$||type||$$))$$; |
... | ... | |
543 | 543 |
-- |
544 | 544 |
|
545 | 545 |
CREATE FUNCTION ensure_prefix(prefix text, str text) RETURNS text |
546 |
LANGUAGE sql STABLE |
|
546 |
LANGUAGE sql STABLE STRICT
|
|
547 | 547 |
AS $_$ |
548 | 548 |
SELECT (CASE WHEN functions.has_prefix($1, $2) THEN $2 ELSE $1||$2 END) |
549 | 549 |
$_$; |
... | ... | |
576 | 576 |
-- |
577 | 577 |
|
578 | 578 |
CREATE FUNCTION name(type regtype) RETURNS text |
579 |
LANGUAGE sql STABLE |
|
579 |
LANGUAGE sql STABLE STRICT
|
|
580 | 580 |
AS $_$ |
581 | 581 |
SELECT typname::text FROM pg_type WHERE oid = $1 |
582 | 582 |
$_$; |
Also available in: Unified diff
schemas/functions.sql: Marked STRICT functions as such