pietermartin / sqlg

TinkerPop graph over sql
MIT License
244 stars 51 forks source link

Implement pgjdbc autosave=conservative #479

Closed pietermartin closed 1 year ago

pietermartin commented 1 year ago

Postgresql throws 'ERROR: cached plan must not change result type' exceptions when the meta data of a sql statements changes. e.g. an ALTER TABLE command was executed on the underlying table of the prepared statement.

Currently Sqlg executes deallocate all and resets the pool to deal with this scenario. Setting autosave=conservative on the driver will take care of this at the driver level.