Skip to content

sql: ensure pausable portals compatible with prepared_statements_cache_size #99959

@ZhouXing19

Description

@ZhouXing19

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:

  1. Allowing both, meaning when deallocating LRU prepared stmts, we close the associated portals.
  2. Disallow setting prepared_statements_cache_size if there're any active portals, or if the session var multiple_active_portals_enabled has been set to true. And vice versa.

Jira issue: CRDB-26158

Epic CRDB-25183

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-pausable-portalsIssues related to multiple active portalsC-bugCode 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)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions