Are you aware of any documentation generator for PL/PgSQL? I’m used to write function documentation using a javadoc style. I’m aware of a tool plsqldoc that generated documentation for PL/SQL code, whose syntax is closed to PL/PgSQL. Does someone use this tool for PL/PgSQL?