Alvaro Herrera <alvherre@commandprompt.com> writes:
> Which is why you should leave the relation case alone and only add the
> different case. The relation case is already known to be good.
Well, a certain amount of refactoring of the code is inevitable unless
we want a lot of code duplication. But I don't see a reason to do
anything more to the relation-case code path than push some chunks of it
into subroutines.
regards, tom lane