Re: Dead code as a result of plan cache invalidation?

Поиск
Список
Период
Сортировка
От Gregory Stark
Тема Re: Dead code as a result of plan cache invalidation?
Дата
Msg-id 871wfocd0k.fsf@oxford.xeocode.com
обсуждение исходный текст
Ответ на Re: Dead code as a result of plan cache invalidation?  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Dead code as a result of plan cache invalidation?
Список pgsql-hackers
"Tom Lane" <tgl@sss.pgh.pa.us> writes:

> Gregory Stark <stark@enterprisedb.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



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Dead code as a result of plan cache invalidation?
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: what is difference between LOCAL and GLOBAL TEMP TABLES in PostgreSQL