SELECT proname, prorettype::regtype, proargtypes::regtype[] FROM pg_proc
WHERE oid in ('functest_A_1'::regproc,
'functest_A_2'::regproc,
- 'functest_A_3'::regproc);
+ 'functest_A_3'::regproc) ORDER BY proname;
proname | prorettype | proargtypes
--------------+------------+-------------------
functest_a_1 | boolean | [0:1]={text,date}
WHERE oid in ('functest_B_1'::regproc,
'functest_B_2'::regproc,
'functest_B_3'::regproc,
- 'functest_B_4'::regproc);
+ 'functest_B_4'::regproc) ORDER BY proname;
proname | provolatile
--------------+-------------
functest_b_1 | v
WHERE oid in ('functest_B_1'::regproc,
'functest_B_2'::regproc,
'functest_B_3'::regproc,
- 'functest_B_4'::regproc);
+ 'functest_B_4'::regproc) ORDER BY proname;
proname | provolatile
--------------+-------------
functest_b_1 | v
SELECT proname, prosecdef FROM pg_proc
WHERE oid in ('functext_C_1'::regproc,
'functext_C_2'::regproc,
- 'functext_C_3'::regproc);
+ 'functext_C_3'::regproc) ORDER BY proname;
proname | prosecdef
--------------+-----------
functext_c_1 | f
SELECT proname, prosecdef FROM pg_proc
WHERE oid in ('functext_C_1'::regproc,
'functext_C_2'::regproc,
- 'functext_C_3'::regproc);
+ 'functext_C_3'::regproc) ORDER BY proname;
proname | prosecdef
--------------+-----------
functext_c_1 | f
SELECT proname, procost FROM pg_proc
WHERE oid in ('functext_D_1'::regproc,
'functext_D_2'::regproc,
- 'functext_D_3'::regproc);
+ 'functext_D_3'::regproc) ORDER BY proname;
proname | procost
--------------+---------
functext_d_1 | 100
SELECT proname, procost FROM pg_proc
WHERE oid in ('functext_D_1'::regproc,
'functext_D_2'::regproc,
- 'functext_D_3'::regproc);
+ 'functext_D_3'::regproc) ORDER BY proname;
proname | procost
--------------+---------
functext_d_1 | 100
LEAKPROOF AS 'SELECT $1 > 100';
SELECT proname, proleakproof FROM pg_proc
WHERE oid in ('functext_E_1'::regproc,
- 'functext_E_2'::regproc);
+ 'functext_E_2'::regproc) ORDER BY proname;
proname | proleakproof
--------------+--------------
functext_e_1 | f
ALTER FUNCTION functext_E_2(int) STABLE; -- unrelated change, no effect
SELECT proname, proleakproof FROM pg_proc
WHERE oid in ('functext_E_1'::regproc,
- 'functext_E_2'::regproc);
+ 'functext_E_2'::regproc) ORDER BY proname;
proname | proleakproof
--------------+--------------
functext_e_1 | t
WHERE oid in ('functext_F_1'::regproc,
'functext_F_2'::regproc,
'functext_F_3'::regproc,
- 'functext_F_4'::regproc);
+ 'functext_F_4'::regproc) ORDER BY proname;
proname | proisstrict
--------------+-------------
functext_f_1 | f
WHERE oid in ('functext_F_1'::regproc,
'functext_F_2'::regproc,
'functext_F_3'::regproc,
- 'functext_F_4'::regproc);
+ 'functext_F_4'::regproc) ORDER BY proname;
proname | proisstrict
--------------+-------------
functext_f_1 | f
SELECT proname, prorettype::regtype, proargtypes::regtype[] FROM pg_proc
WHERE oid in ('functest_A_1'::regproc,
'functest_A_2'::regproc,
- 'functest_A_3'::regproc);
+ 'functest_A_3'::regproc) ORDER BY proname;
--
-- IMMUTABLE | STABLE | VOLATILE
WHERE oid in ('functest_B_1'::regproc,
'functest_B_2'::regproc,
'functest_B_3'::regproc,
- 'functest_B_4'::regproc);
+ 'functest_B_4'::regproc) ORDER BY proname;
ALTER FUNCTION functest_B_2(int) VOLATILE;
ALTER FUNCTION functest_B_3(int) COST 100; -- unrelated change, no effect
WHERE oid in ('functest_B_1'::regproc,
'functest_B_2'::regproc,
'functest_B_3'::regproc,
- 'functest_B_4'::regproc);
+ 'functest_B_4'::regproc) ORDER BY proname;
--
-- SECURITY DEFINER | INVOKER
SELECT proname, prosecdef FROM pg_proc
WHERE oid in ('functext_C_1'::regproc,
'functext_C_2'::regproc,
- 'functext_C_3'::regproc);
+ 'functext_C_3'::regproc) ORDER BY proname;
ALTER FUNCTION functext_C_1(int) IMMUTABLE; -- unrelated change, no effect
ALTER FUNCTION functext_C_2(int) SECURITY INVOKER;
SELECT proname, prosecdef FROM pg_proc
WHERE oid in ('functext_C_1'::regproc,
'functext_C_2'::regproc,
- 'functext_C_3'::regproc);
+ 'functext_C_3'::regproc) ORDER BY proname;
--
-- COST
SELECT proname, procost FROM pg_proc
WHERE oid in ('functext_D_1'::regproc,
'functext_D_2'::regproc,
- 'functext_D_3'::regproc);
+ 'functext_D_3'::regproc) ORDER BY proname;
ALTER FUNCTION functext_D_1(int,int) STABLE; -- unrelated change, no effect
ALTER FUNCTION functext_D_2(int,int) COST 50;
SELECT proname, procost FROM pg_proc
WHERE oid in ('functext_D_1'::regproc,
'functext_D_2'::regproc,
- 'functext_D_3'::regproc);
+ 'functext_D_3'::regproc) ORDER BY proname;
--
-- LEAKPROOF
LEAKPROOF AS 'SELECT $1 > 100';
SELECT proname, proleakproof FROM pg_proc
WHERE oid in ('functext_E_1'::regproc,
- 'functext_E_2'::regproc);
+ 'functext_E_2'::regproc) ORDER BY proname;
ALTER FUNCTION functext_E_1(int) LEAKPROOF;
ALTER FUNCTION functext_E_2(int) STABLE; -- unrelated change, no effect
SELECT proname, proleakproof FROM pg_proc
WHERE oid in ('functext_E_1'::regproc,
- 'functext_E_2'::regproc);
+ 'functext_E_2'::regproc) ORDER BY proname;
-- list of built-in leakproof functions
SELECT proname, prorettype::regtype, proargtypes::regtype[]
WHERE oid in ('functext_F_1'::regproc,
'functext_F_2'::regproc,
'functext_F_3'::regproc,
- 'functext_F_4'::regproc);
+ 'functext_F_4'::regproc) ORDER BY proname;
ALTER FUNCTION functext_F_1(int) IMMUTABLE; -- unrelated change, no effect
ALTER FUNCTION functext_F_2(int) STRICT;
WHERE oid in ('functext_F_1'::regproc,
'functext_F_2'::regproc,
'functext_F_3'::regproc,
- 'functext_F_4'::regproc);
+ 'functext_F_4'::regproc) ORDER BY proname;
-- Cleanups
DROP SCHEMA temp_func_test CASCADE;