Skip to content

docs: give each in-memory operation its real reason (10.x, #402) - #404

Merged
CaffeinatedCoder merged 5 commits into
release/10.xfrom
docs/402-in-memory-reasons-10.x
Oct 25, 2026
Merged

CaffeinatedCoder merged 5 commits into
release/10.xfrom
docs/402-in-memory-reasons-10.x

Conversation

@CaffeinatedCoder

Copy link
Copy Markdown
Owner

Closes #402 (on main, PR #403 closes it; this is the 10.x half)

This is the 10.x port of PR #403 for 10.2.0 (#358): git cherry-pick -x of b583c30. It's stacked on PR #401 (#399), which it shares lines with; merge that one first.

Problem

See PR #403 and #402. The in-memory reasons in docs/efcore.md#what-runs-where, the READMEs, the guides and the XML docs overstated what PostgreSQL lacks. The Shift/Expand reason was stale here too: release/10.x keeps a bound at infinity since #224 (InfinityShiftRoundTripTests).

Change

  • Everything outside the changelogs applied without conflicts and is identical to PR docs: give each in-memory operation its real reason (#402) #403.
  • Changelogs, a conflict resolved by placing the row: the Docs: row goes under ### Fixed in [10.2.0] of all five changelogs (a new ### Fixed where the section had none), instead of main's [11.0.0-preview.1].

Tests

The build passes on .NET 10 (warnings as errors), and so do the conventions (408) and ASP.NET Core (92) tests. The SQL in the new text was measured on PostgreSQL 16 (listed in PR #403).

Closes acts only on main; #365 checks that this half merged.

🤖 Generated with Claude Code

What runs where explained the in-memory operations by what PostgreSQL
lacks, and several reasons were wrong. Measured on PostgreSQL 16:
- Shift/Expand: a bound at infinity stays there since #224, so "an
  infinity date absorbs the step" was stale. The empty range, time past
  midnight and a date past .NET's last one still differ.
- Length: upper(r)::int8 - lower(r)::int8 widens fine; a temporal range
  open to infinity fails in PostgreSQL ("cannot subtract infinite dates").
- Values/Split: ARRAY(SELECT generate_series(...)) is one value.
- Bridge conversions: built-in range_agg over one-element ranges, no
  custom aggregate.
- Clamp: LEAST/GREATEST skip NULL; one branch for empty, one step for a
  discrete upper bound.
- Value set Intersect/Except: unnest WITH ORDINALITY keeps the left
  order, canonical only over canonical rows. Add sorts by collation.
- The indexers: subscripting reads stored order; a RangeSet's Count and
  indexer are a subquery over unnest.
An in-memory member runs in the final Select only, and Union composes
only under some operators. The decisions don't change.

The same reasons are corrected in the READMEs, getting-started,
value-sets, ranges, testing, AGENTS.md and the XML docs on Split,
Values, Shift and Expand of every range type. Claim E31 follows.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
(cherry picked from commit b583c30)
@CaffeinatedCoder CaffeinatedCoder added this to the 10.2.0 milestone Oct 25, 2026
@CaffeinatedCoder CaffeinatedCoder added documentation Improvements or additions to documentation area/ranges Range unions, variants and the shape engines area/range-set RangeSet and multirange algebra area/value-sets Value set families and wrapper arities package/nodatime Affects CodoMetis.ValueRanges.NodaTime package/efcore Affects CodoMetis.ValueRanges.EFCore.PostgreSQL package/core Affects CodoMetis.ValueRanges package/efcore-nodatime Affects CodoMetis.ValueRanges.EFCore.PostgreSQL.NodaTime stacked Base is another open PR; merge in order, CI does not run until it targets main labels Oct 25, 2026
CaffeinatedCoder and others added 3 commits October 25, 2026 08:13
…ct markers (#402)

The previous commit merged the base branch with its conflicts left in
CHANGELOG.md, three package changelogs and docs/efcore.md. Keeps this
branch's rows, the #399 changelog row without its calendar sentence,
and the calendar factory row as "not translated yet" linking #191.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Base automatically changed from docs/399-what-runs-where-10.x to release/10.x October 25, 2026 09:49
@CaffeinatedCoder
CaffeinatedCoder merged commit 3e1669b into release/10.x Oct 25, 2026
10 checks passed
@CaffeinatedCoder
CaffeinatedCoder deleted the docs/402-in-memory-reasons-10.x branch October 25, 2026 09:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/range-set RangeSet and multirange algebra area/ranges Range unions, variants and the shape engines area/value-sets Value set families and wrapper arities documentation Improvements or additions to documentation package/core Affects CodoMetis.ValueRanges package/efcore Affects CodoMetis.ValueRanges.EFCore.PostgreSQL package/efcore-nodatime Affects CodoMetis.ValueRanges.EFCore.PostgreSQL.NodaTime package/nodatime Affects CodoMetis.ValueRanges.NodaTime stacked Base is another open PR; merge in order, CI does not run until it targets main

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant