Dean Rasheed <dean.a.rash...@gmail.com> writes: > I wonder if, years from now, it might look a bit odd that > rewriteTargetListUD() is doing part of work of preptlist.c, is only > called from there, and yet is located in the rewriter.
Yeah, I probably wouldn't have done it like this in a green field, but maintaining traceability to the existing code is valuable IMO. > A separate point -- it might be marginally more efficient to have the > work of rewriteTargetListUD() done after expand_targetlist() to avoid > the possible renumbering of the resjunk entries. Hm. It wouldn't save a lot, but yeah, doing it in this order seems a bit silly when you put it like that. regards, tom lane