From: Al Presseller <apresseller@commoninf.com>
To: 'Vladimir Sitnikov' <sitnikov.vladimir@gmail.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: "Cached plan must not change result type" error when switching search_path via explicit execution of SET SEARCH_PATH = ...
Date: Wed, 25 Jan 2017 14:09:24 -0500
Message-ID: <031601d2773e$8b5225a0$a1f670e0$@commoninf.com> (raw)
In-Reply-To: <CAB=Je-ESngGfwRVw-LN7-C27UjBv7tNSPM+3cTtgMVzOnCVARg@mail.gmail.com>
References: <020201d27691$072841e0$1578c5a0$@commoninf.com>
<CAB=Je-ESngGfwRVw-LN7-C27UjBv7tNSPM+3cTtgMVzOnCVARg@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-jdbc>
Hi Vladimir,
Thank you for the timely response.
I am new to this community. Can you provide specifics as to how I would go about bringing this to the attention of the “postgresql developers” – that is, I’m not sure if you’re directing me to send this same message out to the pqsql-hackers mailing list, or to submit a bug report via the form located at www.postgresql.org/account/submitbug/ <http://www.postgresql.org/account/submitbug/; , or maybe to do something else, altogether.
And yes, in the mean time we can work with the lowercase style just fine (the hard part was figuring out the cause of the bad behavior).
--Al
From: Vladimir Sitnikov [mailto:sitnikov.vladimir@gmail.com]
Sent: Tuesday, January 24, 2017 5:34 PM
To: Al Presseller <apresseller@commoninf.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: [JDBC] "Cached plan must not change result type" error when switching search_path via explicit execution of SET SEARCH_PATH = ...
That's unfortunate.
Would you please report that ustream? (I mean to the postgresql developers)
The thing is it would be so much easier if pgjdbc would not have to parse SQL in order to identify if the statement was "set search_path".
In the mean time: is lowercase style fine for you?
Vladimir
ср, 25 янв. 2017 г. в 1:27, Al Presseller <apresseller@commoninf.com <mailto:apresseller@commoninf.com> >:
The fix for issue #496 ("Cached plan must not change result type" when using PreparedStatement cache across schemas) doesn’t work when the default schema is being assigned via explicit execution of a SET statement that renders the search_path keyword in UPPER CASE.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: apresseller@commoninf.com, sitnikov.vladimir@gmail.com
Subject: Re: "Cached plan must not change result type" error when switching search_path via explicit execution of SET SEARCH_PATH = ...
In-Reply-To: <031601d2773e$8b5225a0$a1f670e0$@commoninf.com>
References: <020201d27691$072841e0$1578c5a0$@commoninf.com> <CAB=Je-ESngGfwRVw-LN7-C27UjBv7tNSPM+3cTtgMVzOnCVARg@mail.gmail.com> <031601d2773e$8b5225a0$a1f670e0$@commoninf.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox