Tab completion in bash for definition of bash functions?

I have several functions in my ~/.bash_profile named pg_dump_[dbname]_[envname] so I would like to enter

type pg_dump [tab]

(or some other command besides type) for bash to show the definitino of that function. Is this a builtin for osx that I am missing how to use or is there a third party to do this?


If you are using ksh/bash/zsh, you want:

$ typeset -f name_of_the_function

That will display the definition.