Re: CommandCounterIncrement versus plan caching - Mailing list pgsql-hackers

From Tom Lane
Subject Re: CommandCounterIncrement versus plan caching
Date
Msg-id 24247.1196402170@sss.pgh.pa.us
Whole thread Raw
In response to Re: CommandCounterIncrement versus plan caching  (Gregory Stark <stark@enterprisedb.com>)
List pgsql-hackers
Gregory Stark <stark@enterprisedb.com> writes:
> Wait, shouldn't it be sufficient to do a CCI only in the "if (!plan)" case?

No.  The problem is that if you don't do the CCI then you don't get the
invalidation events that might-or-might-not be pending in the inval
queue.  So testing for whether the plan is still valid is meaningless
unless that queue's been flushed.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: Status report on 8.3 releaset
Next
From: Simon Riggs
Date:
Subject: Release Note Changes