cached plan must not change result type

From: James Pang <jamespang886(at)gmail(dot)com>
To: pgsql-admin(at)lists(dot)postgresql(dot)org
Subject: cached plan must not change result type
Date: 2024-03-29 02:05:59
Message-ID: CAHgTRfcg2jGnjSqq1NVuMDtCjRU3aOXWrhXn1L=92Ka_Ug6euw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin pgsql-jdbc

hi,
PGV14, client use PGJDBC driver and prepared statements, when a table
"alter table alter column type ..." changes done, a lot of JDBC clients got
this error "cached plan must not change result type". when a JDBC client
got this error first time after the DDL schema change, JDBC driver will
clear this caching-plan and following same SQL statement got parsing again
and new cached plan right?
How to avoid this issue when DDL schema changes ?

Thanks,

James

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message M Sarwar 2024-03-29 03:39:35 Re: Like to RETURN SQL results set
Previous Message Erik Wienhold 2024-03-28 22:46:04 Re: Like to RETURN SQL results set

Browse pgsql-jdbc by date

  From Date Subject
Next Message Laurenz Albe 2024-03-29 08:40:14 Re: cached plan must not change result type
Previous Message Chapman Flack 2024-03-19 15:02:38 Re: Java : Postgres double precession issue with different data format text and binary