Re: Prepared statements fail after schema changes with surprising error - Mailing list pgsql-hackers

From Dimitri Fontaine
Subject Re: Prepared statements fail after schema changes with surprising error
Date
Msg-id m2ehhdjqph.fsf@2ndQuadrant.fr
Whole thread Raw
In response to Re: Prepared statements fail after schema changes with surprising error  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Prepared statements fail after schema changes with surprising error
Re: Prepared statements fail after schema changes with surprising error
List pgsql-hackers
Tom Lane <tgl@sss.pgh.pa.us> writes:
>> DROP SCHEMA public;
>> CREATE SCHEMA public;
>
> changes the OID of schema public, whereas the search_path that's cached
> for the cached plan is cached in terms of OIDs.  So while there is a
> table named public.z1 at the end of the sequence, it's not in any schema
> found in the cached search path.

The DROP SCHEMA should invalidate the cached plan, certainly?

Regards,
-- 
Dimitri Fontaine
http://2ndQuadrant.fr     PostgreSQL : Expertise, Formation et Support



pgsql-hackers by date:

Previous
From: Pavel Stehule
Date:
Subject: Re: CF3+4 (was Re: Parallel query execution)
Next
From: Dimitri Fontaine
Date:
Subject: Re: Event Triggers: adding information