Simon Riggs <simon(at)2ndQuadrant(dot)com> writes:
> We talked a few years back about an "Option node" that would select
> sub-plans at runtime based upon the actual values of the bind variable.
> Nobody's got around to doing anything with that yet.
There is an AlternativeSubPlan mechanism in 8.4, though we're not doing
very much with it yet.
regards, tom lane