geoff(at)sea-incorporated(dot)com writes:
> The following SQL has been verified to yield a planner error in 9.2.2 and
> 9.2.8 (maybe others), but the query succeeds in 9.3.4.
Thanks for the compact test case! I believe this patch fixes it:
http://git.postgresql.org/gitweb/?p=postgresql.git;a=commitdiff;h=187ae17300776f48b2bd9d0737923b1bf70f606e
regards, tom lane