I would like to create a function in PL/pgSQL with a couple of nested (or inner) functions within it. This way I can break the problem down into smaller pieces but not have
Nested functions are not supported by PLpgSQL. The emulation has not any sense and it is nonproductive.