You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Document (,max] at the discrete domain boundary: PostgreSQL raises integer out of range #132
area/rangesRange unions, variants and the shape enginesdocumentationImprovements or additions to documentationfound-by/oracleFound by the generated-oracle machinery (claims × API surfaces)package/coreAffects CodoMetis.ValueRangesseverity/lowCosmetic, message or documentation-level difference
(,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:
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.
area/rangesRange unions, variants and the shape enginesdocumentationImprovements or additions to documentationfound-by/oracleFound by the generated-oracle machinery (claims × API surfaces)package/coreAffects CodoMetis.ValueRangesseverity/lowCosmetic, message or documentation-level difference
Activity