Skip to content

pgwire: multiple active result sets (portals) not supported #40195

Closed
@jordanlewis

Description

@jordanlewis

CockroachDB does not currently support multiple active pgwire portals on the same session. This means that you can't perform the following sequence of events:

  1. open portal for query a, which will eventually return 1000 rows
  2. ask for 500 rows of query a
  3. open portal for query b
  4. ask for 500 rows of query b
  5. ask for 500 rows of query a

This sequence will fail at step 3, unless the user closes the portal for query a first, in which case this sequence will fail at step 5.

Jira issue: CRDB-5559
Epic: CRDB-17622

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-sql-pgcompatSemantic compatibility with PostgreSQLA-sql-pgwirepgwire protocol issues.C-enhancementSolution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)T-sql-foundationsSQL Foundations Team (formerly SQL Schema + SQL Sessions)X-anchored-telemetryThe issue number is anchored by telemetry references.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions