Commit f6efa22
fix: preserve prepared plan across databasevm_reset() in PostgreSQL backend
Previously, databasevm_reset() called databasevm_clear_bindings() which
destroyed the SPIPlanPtr on every reset, forcing a full SPI_prepare on
each bind/step cycle. This negated the benefit of caching statements in
cloudsync_table_context. Now reset() only clears parameter values while
keeping the plan, types, and nparams intact for reuse.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>1 parent 6746f5b commit f6efa22
1 file changed
+9
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1726 | 1726 | | |
1727 | 1727 | | |
1728 | 1728 | | |
1729 | | - | |
| 1729 | + | |
| 1730 | + | |
| 1731 | + | |
| 1732 | + | |
| 1733 | + | |
| 1734 | + | |
| 1735 | + | |
| 1736 | + | |
| 1737 | + | |
1730 | 1738 | | |
1731 | 1739 | | |
1732 | 1740 | | |
| |||
0 commit comments