Skip to content

Instantly share code, notes, and snippets.

@arbo77
Created February 11, 2018 17:25
Show Gist options
  • Save arbo77/a2274c88c0da5774801c3f147102b1ba to your computer and use it in GitHub Desktop.
Save arbo77/a2274c88c0da5774801c3f147102b1ba to your computer and use it in GitHub Desktop.
PostgreSQL Procedure List
SELECT n.nspname AS schema
,proname AS fname
,proargnames AS args
,t.typname AS return_type
,pg_get_functiondef(p.oid) as definition
FROM pg_proc p
JOIN pg_type t
ON p.prorettype = t.oid
LEFT OUTER
JOIN pg_description d
ON p.oid = d.objoid
LEFT OUTER
JOIN pg_namespace n
ON n.oid = p.pronamespace
where n.nspname not in ('pg_catalog','information_schema')
order by n.nspname,proname ;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment