Skip to content

A nest of empty arrays deeper than PostgreSQL's 6 dimensions reads as {} #250

Closed

Description

@CaffeinatedCoder

Problem

A nest of empty arrays deeper than 6 reads as {}. PostgreSQL refuses it on 16, 17 and 18 ("number of array dimensions exceeds the maximum allowed (6)"). Int32Set.Parse("{{{{{{{}}}}}}}") → {}; 20 levels and {{{{{{{},{}}}}}}} do the same, through Parse, TryParse (span), TypeConverter, StringSet<T> and Int32Set<T>. Depth 6 is accepted on 17 and 18 and refused on 16, and the library matches that. #240 checks that the nest is rectangular, not how deep it is. The corpus has no row deeper than 4. Found by the final pre-release analysis on add665c; new in 10.0.0 (#128).

Change

The depth cap from the stack-overflow fix (filed alongside this issue) at PostgreSQL's MAXDIM, 6.

Done when

{{{{{{{}}}}}}} is in the rejected rows of SetDimensionDecorationTests and the corpus probe, and is refused on every entry point.

Activity

  1. added this to the 10.0.0 milestone on Oct 19, 2026
  2. added
    bug
    silent
    area/value-sets
    area/literals
    package/core
    on Oct 19, 2026
  3. added
    severity/low
    on Oct 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/literalsarea/value-setsbugpackage/coreseverity/lowsilent

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions