"Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us> writes:
> Gregory Stark <stark(at)enterprisedb(dot)com> writes:
>> Should this case at heaptuple.c:1606 be turned into an elog() now that we have
>> plan cache invalidation?
>
> No, I think it's good as-is. Reading the column as null is the correct
> behavior.
Isn't the correct behaviour that you would have been prevented from executing
that plan and forced to replan your query?
Let me put it another way, how would I write a test case to cover these lines
of code and not receive an error from replanning?
--
Gregory Stark
EnterpriseDB http://www.enterprisedb.com