AFAICS, setrefs.c's special treatment of "converted whole row references"is completely pointless. Why aren't they just treated by the regular"non var" code paths, thus saving code space and cycles?
regards, tom lane