"Heikki Linnakangas" <heikki@enterprisedb.com> writes:
> The underlying problem is that when we do GetOverrideSearchPath() in
> CreateCachedPlan, the memorized search path doesn't include pg_temp, if
> the temp namespace wasn't initialized for the backend yet. When we later
> need to revalidate the plan, pg_temp still isn't searched, even if it
> now exists.
So what's the problem? The cached plan couldn't have referred to a temp
table.
regards, tom lane