Skip to content

Tag Archives: postgresql

cached plan must not change result type

An interesting error that may happen in PostgreSQL when using prepared statements is: ERROR: cached plan must not change result type This may happen when: A prepared statement is prepared on the server The tables structure is changed in a way that the result of the prepared statement will change Prepared statement is executed Let’s [...]