Skip to content
Discussion options

You must be logged in to vote

@sandbox-apps just run the following query and you'll be able to see each function definition:

SELECT
  p.oid :: int8 AS id,
  n.nspname AS schema,
  p.proname AS name,
  l.lanname AS language,
  CASE
    WHEN l.lanname = 'internal' THEN p.prosrc
    ELSE pg_get_functiondef(p.oid)
  END AS definition,
  pg_get_function_arguments(p.oid) AS argument_types,
  t.typname AS return_type
FROM
  pg_proc p
  LEFT JOIN pg_namespace n ON p.pronamespace = n.oid
  LEFT JOIN pg_language l ON p.prolang = l.oid
  LEFT JOIN pg_type t ON t.oid = p.prorettype
WHERE n.nspname = 'auth';

hope that helps!

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by sandbox-apps
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants