Magnus Hagander <mag...@hagander.net> writes: > On Mon, May 7, 2012 at 7:18 PM, Robert Haas <robertmh...@gmail.com> wrote: >> Since the following hunk is repeated 3x, maybe it should be stuffed >> into a function that is then called in three places:
> I considered it trivial enough not to do that for it. I can perhaps be > convinced otherwise, but I doubt it's worth it.. I had considered suggesting the same, but decided not to on the grounds that if we fold these into a subroutine, it will no longer be possible to tell from the file-and-line-number info which call site reported the error. I'm not sure that there would be cases where we'd want to tell that, but I'm not sure there wouldn't be, either. So on the whole I agree with the way Magnus coded it. regards, tom lane -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers