Re: Document and/or remove unreachable code in tuptoaster.c from varvarlena patch - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Document and/or remove unreachable code in tuptoaster.c from varvarlena patch
Date
Msg-id 2240.1186263068@sss.pgh.pa.us
Whole thread Raw
In response to Document and/or remove unreachable code in tuptoaster.c from varvarlena patch  (Gregory Stark <stark@enterprisedb.com>)
Responses Re: Document and/or remove unreachable code in tuptoaster.c from varvarlena patch  (Gregory Stark <stark@enterprisedb.com>)
List pgsql-hackers
Gregory Stark <stark@enterprisedb.com> writes:
> Testers here were having a hard time constructing test cases to reach some
> lines touched by the varvarlena patch. Upon further investigation I'm
> convinced they're unreachable.

I'm not really happy with any of this patch.  ISTM that the stuff you
say is unreachable is only so because of non-essential behavioral
choices made in other parts of the code.  If we were to change those
other parts later, this code (after patching) would break.  I'd rather
leave complete coverage here and not make fragile assumptions; especially
so since these are presumably not performance-critical paths.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Problem with log_timezone not being set during early startup
Next
From: Tom Lane
Date:
Subject: pg_lzcompress strategy parameters