Re: Set search_path + server-prepared statements = cached plan must not change result type - Mailing list pgsql-hackers

From Robert Haas
Subject Re: Set search_path + server-prepared statements = cached plan must not change result type
Date
Msg-id CA+TgmoYhpQxeo3oDwzvjKnZsdneKNEGb6vEN3Vv-Dy3ZzGeyAg@mail.gmail.com
Whole thread Raw
In response to Re: Set search_path + server-prepared statements = cached plan must not change result type  (Vladimir Sitnikov <sitnikov.vladimir@gmail.com>)
Responses Re: Set search_path + server-prepared statements = cached plan must not change result type  (Andres Freund <andres@anarazel.de>)
List pgsql-hackers
On Thu, Jan 21, 2016 at 3:55 PM, Vladimir Sitnikov
<sitnikov.vladimir@gmail.com> wrote:
> Robert>Are you really seeing the same behavior in all versions?
>
> I do not have "pre 9.1" at hand, however all 9.1, 9.2, 9.3, 9.4, and
> 9.5 are affected.
>
> 9.1 just silently executes "old statement" as if search_path was not
> modified at all.
> 9.2, 9.3, 9.4, and 9.5 all fail with "cached plan must not change
> result type" error.

What is the ideal behavior, in your view?

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company



pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: postgres_fdw join pushdown (was Re: Custom/Foreign-Join-APIs)
Next
From: Alvaro Herrera
Date:
Subject: Re: 2016-01 Commitfest