This patch adds some minimal regression tests for refcursors in PL/PgSQL(if someone wants to augment these with more, go right ahead). Barringany objections, I intend to apply this to HEAD before end of day.
-Neil