I am trying to build a documentation system for my database and I would like to include the source of my functions and triggers.
I managed to find all of the metadata on
For such thing I used pg_dump --schema_only [database] but now I use my specialized tool to report schema in easy to compare format:
pg_dump --schema_only [database]
http://code.activestate.com/recipes/576557-dump-postgresql-db-schema-to-text/
Of course it reads function/procedure bodies/