Skip to content

array_agg() performance #23715

Closed
Closed

Description

@fred1268

Describe the bug

The array_agg() function (used in queries like SELECT array_agg(DISTINCT col)) is slow due to per-row memory allocation

To Reproduce

Run any flavor of array_agg() like SELECT array_agg(DISTINCT col)

Expected behavior

array_agg() should not make per-row allocation

Additional context

No response

Activity

  1. added theissue type on Jul 20, 2026
  2. fred1268 commented on Jul 20, 2026

    @fred1268
    ContributorAuthor

    take

  3. added a commit that references this issue on Jul 29, 2026
    cd28203
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions