4 CREATE FUNCTION hobbies(person)
5 RETURNS setof hobbies_r
6 AS 'select * from hobbies_r where person = $1.name'
8 CREATE FUNCTION hobby_construct(text, text)
10 AS 'select $1 as name, $2 as hobby'
12 CREATE FUNCTION hobbies_by_name(hobbies_r.name%TYPE)
13 RETURNS hobbies_r.person%TYPE
14 AS 'select person from hobbies_r where name = $1'
16 NOTICE: type reference hobbies_r.name%TYPE converted to text
17 NOTICE: type reference hobbies_r.person%TYPE converted to text
18 CREATE FUNCTION equipment(hobbies_r)
19 RETURNS setof equipment_r
20 AS 'select * from equipment_r where hobby = $1.name'
22 CREATE FUNCTION user_relns()
25 from pg_class c, pg_namespace n
26 where relnamespace = n.oid and
27 (nspname !~ ''pg_.*'' and nspname <> ''information_schema'') and
30 CREATE FUNCTION pt_in_widget(point, widget)
32 AS '@libdir@/regress@DLSUFFIX@'
34 CREATE FUNCTION overpaid(emp)
36 AS '@libdir@/regress@DLSUFFIX@'
38 CREATE FUNCTION boxarea(box)
40 AS '@libdir@/regress@DLSUFFIX@'
42 CREATE FUNCTION interpt_pp(path, path)
44 AS '@libdir@/regress@DLSUFFIX@'
46 CREATE FUNCTION reverse_name(name)
48 AS '@libdir@/regress@DLSUFFIX@'
50 CREATE FUNCTION oldstyle_length(int4, text)
52 AS '@libdir@/regress@DLSUFFIX@'
55 -- Function dynamic loading
57 LOAD '@libdir@/regress@DLSUFFIX@';