Here is an updated patch with just the "stored" functionality, as discussed.
The actual functionality is much smaller now, contained in the executor.
Everything else is mostly DDL support, trigger handling, and some
frontend stuff.
--
Peter Eisentraut http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services