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

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Gregory Stark <stark(at)enterprisedb(dot)com>
Cc: "PostgreSQL-development Hackers" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Dead code as a result of plan cache invalidation?
Date: 2007-07-04 18:38:11
Message-ID: 28487.1183574291@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Gregory Stark <stark(at)enterprisedb(dot)com> writes:
> 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?

"Hard to get to" is not the same as "dead code". An example is that
third-party add-ons might re-use plans that are not completely up to
date, if they've not been rewritten to use the plan cache.

regards, tom lane

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Gregory Stark 2007-07-04 21:27:43 Re: what is difference between LOCAL and GLOBAL TEMP TABLES in PostgreSQL
Previous Message Bruce Momjian 2007-07-04 17:18:06 Re: what is difference between LOCAL and GLOBAL TEMP TABLES in PostgreSQL