this is listed on TODO:
http://www.postgresql.org/docs/faqs.TODO.html
Add features of Oracle-style packages (Pavel)
A package would be a schema with session-local variables,
public/private functions, and initialization functions. It is also
possible to implement these capabilities in any schema and not use a
separate "packages" syntax at all.
Indeed not seek approval but help.
I am implementing this now to my use and for those who have interest,
perhaps in the form of a patch or contrib.