pg.ddx.io pgsql-jdbc@postgresql.org mailing list archive
help / color / mirror / Atom feed"Cached plan must not change result type" error when switching search_path via explicit execution of SET SEARCH_PATH = ...
3+ messages / 2 participants
[nested] [flat]
* "Cached plan must not change result type" error when switching search_path via explicit execution of SET SEARCH_PATH = ...
@ 2017-01-24 22:27 Al Presseller <apresseller@commoninf.com>
0 siblings, 1 reply; 3+ messages in thread
From: Al Presseller @ 2017-01-24 22:27 UTC (permalink / raw)
To: pgsql-jdbc
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.
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: "Cached plan must not change result type" error when switching search_path via explicit execution of SET SEARCH_PATH = ...
@ 2017-01-24 22:34 Vladimir Sitnikov <sitnikov.vladimir@gmail.com>
parent: Al Presseller <apresseller@commoninf.com>
0 siblings, 1 reply; 3+ messages in thread
From: Vladimir Sitnikov @ 2017-01-24 22:34 UTC (permalink / raw)
To: Al Presseller <apresseller@commoninf.com>; +Cc: pgsql-jdbc
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>:
> 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.
>
>
>
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: "Cached plan must not change result type" error when switching search_path via explicit execution of SET SEARCH_PATH = ...
@ 2017-01-25 19:09 Al Presseller <apresseller@commoninf.com>
parent: Vladimir Sitnikov <sitnikov.vladimir@gmail.com>
0 siblings, 0 replies; 3+ messages in thread
From: Al Presseller @ 2017-01-25 19:09 UTC (permalink / raw)
To: 'Vladimir Sitnikov' <sitnikov.vladimir@gmail.com>; +Cc: pgsql-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.
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2017-01-25 19:09 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2017-01-24 22:27 "Cached plan must not change result type" error when switching search_path via explicit execution of SET SEARCH_PATH = ... Al Presseller <apresseller@commoninf.com>
2017-01-24 22:34 ` Vladimir Sitnikov <sitnikov.vladimir@gmail.com>
2017-01-25 19:09 ` Al Presseller <apresseller@commoninf.com>
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