Re: BUG #19350: Short circuit optimization missed when runningsqlscriptes in JDBC

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: BUG #19350: Short circuit optimization missed when runningsqlscriptes in JDBC
Дата
Msg-id 2629415.1765986243@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: BUG #19350: Short circuit optimization missed when runningsqlscriptes in JDBC  (Dave Cramer <davecramer@postgres.rocks>)
Список pgsql-bugs
Dave Cramer <davecramer@postgres.rocks> writes:
> On Tue, 16 Dec 2025 at 20:40, ZhangChi <798604270@qq.com> wrote:
>> But my question is that in the CLI, the test case (like foo2) I showed can
>> return the results. But when I run the same test case in JDBC, the test
>> case triggers an error. I wonder why there is an inconsistency.

> Possibly because JDBC does everything using the V3 protocol whereas psql
> does not. psql uses simple query.

The error will occur if we try to build a "custom plan" for the
prepared query.  I suspect a discrepancy in the plan_cache_mode
settings between JDBC and the user's psql setup.

            regards, tom lane



В списке pgsql-bugs по дате отправления: