title: How do I create a nested function in PL/pgSQL?
body: <p>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 my smaller pieces accessible outside of this function.</p>
  
  <p>Is it possible to do this in PL/pgSQL? If so, how?</p>