Skip to content

Document (,max] at the discrete domain boundary: PostgreSQL raises integer out of range #132

Closed

Description

@CaffeinatedCoder

(,max] over int4range and int8range is a range the library holds and PostgreSQL refuses: canonicalizing the inclusive upper bound needs max + 1. It is the same boundary as the (max, +∞) row in docs/architecture.md#domain-width-and-the-boundary, but the table doesn't list it. Measured on main (3ecfa10) against PostgreSQL 17.10:

Int32Range.Parse("(,2147483647]", null);   // (,2147483647]
Int64Range.Parse("(,9223372036854775807]", null);
SELECT '(,2147483647]'::int4range;   -- ERROR: integer out of range

Found by LiteralCorpusProbeTests (#123), family extreme, on Int32Range and Int64Range. Loud on the server (22003 when the value is written), so not a wrong answer.

Fix. Add the row to the boundary table ((-∞, max]: this model holds it; PostgreSQL raises 22003) and assert it in DomainBoundaryDivergenceTests; then the probe counts the row as documented and the candidate goes.

Activity

  1. added
    documentation
    found-by/oracle
    area/ranges
    package/core
    severity/low
    on Oct 17, 2026
  2. added this to the 10.0.0 milestone on Oct 18, 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/rangesdocumentationfound-by/oraclepackage/coreseverity/low

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions