[tt]\df[/tt] in psql will show you all the functions, including system functions.
You can select from the [tt]pg_proc[/tt] system table to get more information about functions, including source.
[tt]SELECT prosrc FROM pg_proc WHERE proname='myfunction';[/tt]