Rod Taylor <rbt@rbt.ca> writes:
> SubSelects have undergone a large simplification by Tom while
> implementing read-only plans in the executor. This seems to have
> accidentally fixed this case.
Nothing accidental about it.
http://archives.postgresql.org/pgsql-general/2002-12/msg00375.php
regards, tom lane