-
Notifications
You must be signed in to change notification settings - Fork 4.1k
sql: ensure pausable portals compatible with prepared_statements_cache_size #99959
Copy link
Copy link
Closed
Labels
A-pausable-portalsIssues related to multiple active portalsIssues related to multiple active portalsC-bugCode not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.T-sql-foundationsSQL Foundations Team (formerly SQL Schema + SQL Sessions)SQL Foundations Team (formerly SQL Schema + SQL Sessions)
Description
In #98917 we introduced prepared_statements_cache_size, which automatically deallocate LRU prepared statements. In #99663 we (will) introduce pausable portals, which enable executing prepared stmts in an interleaving manner. We need to sort out the expected interaction of both features.
There're several options:
- Allowing both, meaning when deallocating LRU prepared stmts, we close the associated portals.
- Disallow setting
prepared_statements_cache_sizeif there're any active portals, or if the session varmultiple_active_portals_enabledhas been set to true. And vice versa.
Jira issue: CRDB-26158
Epic CRDB-25183
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
A-pausable-portalsIssues related to multiple active portalsIssues related to multiple active portalsC-bugCode not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.T-sql-foundationsSQL Foundations Team (formerly SQL Schema + SQL Sessions)SQL Foundations Team (formerly SQL Schema + SQL Sessions)