"Catalin Pitis" <cpitis(dot)pgsql(at)gmail(dot)com> writes:> ERROR: plan should not reference subplan's variable
I've applied a patch for this; will be in 8.1.4.
http://archives.postgresql.org/pgsql-committers/2006-05/msg00016.php
regards, tom lane