Skip to content

docs: describe the PostgreSQL read replica mode as a proposal - #584

Merged
LeeroyHannigan merged 4 commits into
mainfrom
docs/postgres-read-replica
Nov 25, 2026
Merged

LeeroyHannigan merged 4 commits into
mainfrom
docs/postgres-read-replica

Conversation

@LeeroyHannigan

@LeeroyHannigan LeeroyHannigan commented Oct 25, 2026 •

Copy link
Copy Markdown
Collaborator

Changes since the last review

Three commits sit on top of 204827d. 39107ef merges main. 6dcd780 and a2506c2 answer the four review threads and the note on the commit message.

  • Thread 1, document 04: sections 5.2 and 5.3 both read as the proposal.
  • Thread 2, document 08: 6dcd780 removes connection_timeout_secs and statement_timeout_secs from the [storage.postgres] sample and adds a commented catalog_pool_size line. The other tables of the sample are docs: the sample configuration in design document 08 does not load #585.
  • Thread 3, document 02: the 4.7 decision limits strong consistency to base table and LSI reads. GSI reads can lag by the propagation queue. a2506c2 says the same in document 04, section 5.3.
  • Thread 4, document 02: the last rationale bullet holds before and after feat(storage): carry ConsistentRead to the data engine as ReadOptions #559.
  • Commit message note: the message of 6dcd780 states the four corrections. This repository squashes with the commit messages, so they reach main.
  • Nit, document 01: REQ-PG-008 points at sections 5.2 and 5.3.

What

Four design documents and the technical debt register described a PostgreSQL read replica mode as current behaviour. They named a storage.postgres.read_replica_url setting, a read_replica_pool_size, a read_pool() selected per read, and ConsistentRead=false reads routed to a streaming replica. None of that is in the repository. The PostgreSQL backend serves every item read and write from data_pool. PostgresStorageConfig carries #[serde(deny_unknown_fields)], so a configuration that copies read_replica_url from the documents stops the server at startup.

The documents now state what the backend does and label the replica mode a proposal.

  • docs/design/01-requirements.md: REQ-DATA-015 states that the parameter is accepted and charged and that no in-tree backend routes a read on it. REQ-PG-008 is marked proposed. It names the struct that refuses the keys and says every item read and write runs on data_pool. It points at both proposals: document 04 sections 5.2 and 5.3 with one replica URL, and document 11 Stage 2 with a replicas list.
  • docs/design/02-high-level-design.md: section 4.7 states the decision as the PostgreSQL backend serving every item read from the pool that takes the writes. Base table and LSI reads are strongly consistent whatever ConsistentRead says. GSI rows go through the propagation queue (index_propagation_delay_ms, default 10 ms), so a GSI read can lag the base table. The replica routing is a proposal, and the rationale bullets are rewritten in that tense.
  • docs/design/04-component-storage.md: the section 5.2 sketch carries a label. It says that the sketch and the replica mode of section 5.3 are a proposal. Its pool predates the catalog and data pool split and stands for today's data_pool. The two keys stop the server. Section 5.3 says the backend serves every item read and write from data_pool. Its single-node paragraph is labelled as what the backend does today, its replica paragraph as proposed, and the read_pool() helper sits in the proposal.
  • docs/design/08-component-config.md: the read_replica_url environment variable row and the two sample lines are removed, since a configuration carrying them does not load. connection_timeout_secs and statement_timeout_secs, which the struct refuses with the same error, are removed from the same table. A commented catalog_pool_size line is added, as docs/manuals/05-admin-guide.md lists it. The other tables of the section 3 sample are docs: the sample configuration in design document 08 does not load #585.
  • docs/technical-debt.md: the F-2 row says the two ConsistentRead values are served the same way on every backend, and its line reference now reads item.rs:176.

Why

Closes #561.

An operator who followed document 08 got a server that refused to start. A backend author reading documents 01, 02 or 04 would have built against a read_pool and a configuration field that do not exist. The TODO at crates/core/src/types/item.rs:176 is the only trace of the mode in code and it is future tense.

Testing done

Documentation only, no code or test changes. Each statement in the new text was checked against the source at 744ea291 for the first commit. The check ran again at 6dcd780 for this round, with main merged at 3534c9e. a2506c2 was checked against DEFAULT_INDEX_PROPAGATION_DELAY_MS in crates/storage-postgres/src/lib.rs. git grep read_replica and git grep read_pool under crates/ return nothing. deny_unknown_fields is on PostgresStorageConfig in crates/storage-postgres/src/config.rs. get_item_impl, query_impl, scan_impl and the item writes use self.data_pool. The capacity charge is in crates/engine/src/capacity_helpers.rs. The GSI propagation default is DEFAULT_INDEX_PROPAGATION_DELAY_MS in crates/storage-postgres/src/lib.rs.

The new text does not depend on #559: it names neither ReadOptions nor ADR-0024. Both branches rewrite the same paragraphs of section 5.3 in document 04. So git merge-tree of this branch with feat/read-options (6e96426) reports a content conflict in that file in either order. Whichever PR merges second resolves that hunk and keeps the text of #559, which names ReadOptions::consistent_read. The run also reports a conflict in crates/engine/src/import_export.rs. That one is between #559 and main and exists without this branch.

git grep -n -E 'read_replica|read_pool' -- crates/   # no matches
git diff origin/main HEAD --stat                     # 5 files, 30 insertions, 29 deletions
cargo +1.97.0 test -p extenddb-storage-postgres --test doc_version_literals   # 3 passed at 6dcd780f
python3 -m pytest --collect-only -q tests/           # 6637 tests collected
python3 -m pytest --collect-only -q tests/python     # 672 tests collected

Checklist

  • I have read CONTRIBUTING.md
  • All tests pass (cargo test --workspace)
  • Code is formatted (cargo fmt --check)
  • Clippy is clean (cargo clippy -- -W clippy::pedantic)
  • I have added or updated tests for new functionality
  • I have updated documentation if behavior changed
  • Breaking changes are noted below (if any)
  • If this changes the wire protocol, Storage trait, auth model, on-disk
    format, or public CLI surface, an RFC has been accepted or is linked
    below. Otherwise, an ADR captures the decision (link below).

ADR / RFC: n/a (documentation correction: the decision the documents now describe is the one in the code)

Breaking changes

None.


By submitting this pull request, I confirm that my contribution is made under
the terms of the Apache License 2.0 and I agree to the Developer Certificate of
Origin (DCO). See CONTRIBUTING.md for details.

…rrent behaviour

Four design documents stated a read replica mode in the present tense: a
storage.postgres.read_replica_url setting with read_replica_pool_size, a
read_pool field on PostgresEngine, a read_pool() helper, and
ConsistentRead=false reads routed to a streaming replica. None of it exists:
grep read_replica over crates/ returns nothing, PostgresConfig carries
deny_unknown_fields, and every item read and write runs on data_pool. An
operator who copied read_replica_url from the configuration reference got a
server that refused to start.

- 01-requirements: REQ-DATA-015 states what the backends do (the flag reaches
  storage as ReadOptions::consistent_read; every in-tree backend serves both
  values from the copy that took the write) and REQ-PG-008 is marked proposed
  with the startup refusal named.
- 02-high-level-design 4.7: the decision is strongly consistent reads today,
  the replica route a proposal; the rationale bullets are in the conditional.
- 04-component-storage 5.2: the pool sketch is labelled a proposal (5.3 is
  rewritten by #559).
- 08-component-config: the read_replica_url environment row and the two
  sample lines are removed, since the setting stops the server.
- technical-debt F-2 and the TODO index line say the same in the same tense.

Closes #561

@demohan demohan left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No code, config key or test implements read replica mode at this head or on main; the only trace is the TODO at crates/core/src/types/item.rs:176. On a PostgreSQL server built from this head, read_replica_url (empty, and set to a reachable database), read_replica_pool_size and EXTENDDB__STORAGE__POSTGRES__READ_REPLICA_URL each stop serve, verify and migrate with unknown field, and the same config without them starts. GetItem, Query, Scan and BatchGetItem return the latest write with either ConsistentRead value and charge 0.5 and 1.0 RCU, as the service does. Links and anchors in the five files resolve, and the branch merges onto current main without conflict.

I will approve once the items below are done.

Commit 204827d

Optional. The message cites ReadOptions::consistent_read, which does not exist at this head, says every in-tree backend serves both values from the copy that took the write, which does not hold for Cassandra (reads at ONE), names PostgresConfig for PostgresStorageConfig, and lists a todo-index.md change that is not in the diff.

Comment thread docs/design/04-component-storage.md Outdated

### 5.2 Connection Pooling

The sketch below is a proposal for a read replica mode, not code in this repository; section 5.3 states what the

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The new label says section 5.3 states what the backend does today. At this head, and merged onto main, 5.3 still describes replica mode as current: reads "are routed" to the replica when read_replica_url is set (line 484), and "All read implementations call self.read_pool(...)" (line 498). The label holds only after #559 rewrites 5.3, and the PR body says this text does not depend on #559. 01-requirements.md:452 and 02-high-level-design.md:270 call 5.3 the proposal, and this label calls 5.2 the proposal. Correcting 5.3 in this PR keeps it independent of the order the two merge in.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in 6dcd780. Section 5.3 no longer describes the replica mode as current. Its first paragraph says the backend serves every item read and write from data_pool, and that read_pool and read_replica_url exist only in the sketch above. The single-node paragraph carries the label "what the backend does today", the replica paragraph the label "proposed", with its verbs in the conditional. The closing sentence puts the read_pool() helper in the proposal. The 5.2 label now says that the sketch and the replica mode of 5.3 are both the proposal. It no longer points at 5.3 for today's behaviour.

#559 rewrites the same paragraphs, so the two branches now conflict in that one hunk. Whichever merges second resolves it and keeps the text of #559, which names ReadOptions::consistent_read.

Comment thread docs/design/08-component-config.md Outdated
# When set, ConsistentRead=false reads route here. When empty, all reads
# use the primary (strongly consistent). Recommended for migration testing.
read_replica_pool_size = 20 # Pool size for the read replica (defaults to pool_size if unset)
connection_timeout_secs = 5

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

connection_timeout_secs and statement_timeout_secs, left beside the removed replica lines, each stop the server with unknown field ... expected one of connection_string, pool_size, catalog_pool_size. They are the case the PR body describes for the replica lines.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in 6dcd780. connection_timeout_secs and statement_timeout_secs are gone from the [storage.postgres] sample. The table now lists connection_string, pool_size and a commented catalog_pool_size line, the three keys PostgresStorageConfig has, as docs/manuals/05-admin-guide.md lists them. I checked the block through the same toml::Table to PostgresStorageConfig conversion the backend factory uses. The sample as it stood was refused with the error you quote. The block without the two keys parses.

The other tables of the section 3 sample ([server], [auth], [limits], [logging], [metrics], [ttl], [streams]) also carry keys the structs refuse. That is #585, filed right after this PR, and stays separate.

Comment thread docs/design/02-high-level-design.md Outdated
### 4.7 Read Consistency and the Proposed PostgreSQL Read Replica

**Decision:** All reads are strongly consistent by default. Eventually consistent reads (`ConsistentRead=false`) are supported by routing to an optional PostgreSQL streaming replica.
**Decision:** The PostgreSQL backend serves every item read from `data_pool`, the pool that takes the writes, so its reads are strongly consistent whatever `ConsistentRead` says. The flag is accepted and charged (0.5 RCU for eventually consistent, 1.0 RCU for strongly consistent). Routing `ConsistentRead=false` reads to a PostgreSQL streaming replica is a proposal (design document 04, section 5.3; REQ-PG-008; design document 11, Stage 2) and not code that exists.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"Its reads are strongly consistent whatever ConsistentRead says" holds for base table and LSI reads. GSI rows are written through a queue with a default 10 ms delay (crates/storage-postgres/src/lib.rs:185), as differences-from-dynamodb.md:104 says.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in 6dcd780. The decision now says base table and local secondary index reads are strongly consistent whatever ConsistentRead says. Global secondary index rows go through the propagation queue (index_propagation_delay_ms, default 10 ms, DEFAULT_INDEX_PROPAGATION_DELAY_MS in crates/storage-postgres/src/lib.rs). So a read on a GSI can lag the base table, as on the service. The sentence points at document 04, section 6, for the queue. a2506c2 says the same in the single-node paragraph of document 04, section 5.3, which this PR relabels.

Comment thread docs/design/02-high-level-design.md Outdated
- In the proposal the replica is opt-in; when it is unset, all reads go to the primary, which is what the backend does today
- Writes always go to the primary. `ConsistentRead=true` always reads from the primary. In the proposal only `ConsistentRead=false` reads route to the replica
- Capacity calculations always reflect the consistency mode (0.5 RCU for eventually consistent, 1.0 RCU for strongly consistent) whether or not a replica exists
- The proposal routes on the flag inside the PostgreSQL backend, so it needs the storage trait to carry the flag (design document 11, Stage 1); with that in place it needs no change to the engine or server and is contained in the backend's pool selection

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Optional. "needs the storage trait to carry the flag (doc 11, Stage 1)" is true here and goes stale when #559 lands. Whichever of the two merges second can update it.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reworded in 6dcd780 so it reads the same before and after #559. The proposal depends on the storage trait carrying the flag to the backend, which is Stage 1 of document 11. Once the flag is in the trait, the sentence still holds.

…ncy claims

Review of 204827d found four statements in the new text that do not hold at
this head. It also found two keys in a sample that the server refuses.

- 04-component-storage 5.2 and 5.3: the 5.2 label pointed at 5.3 for what the
  backend does today. 5.3 still described the replica mode in the present
  tense. Both sections now read as the proposal. The backend serves every item
  read and write from data_pool. The read_pool helper and read_replica_url
  exist only in the sketch. The single-node paragraph carries the label
  "what the backend does today", the replica paragraph the label "proposed".
- 02-high-level-design 4.7: "its reads are strongly consistent whatever
  ConsistentRead says" holds for base table and local secondary index reads.
  Global secondary index rows go through the propagation queue
  (index_propagation_delay_ms, default 10 ms), so a read on a GSI can lag the
  base table. The decision says so. The last rationale bullet now reads the
  same before and after the trait carries the flag: the proposal depends on
  design document 11, Stage 1.
- 08-component-config: connection_timeout_secs and statement_timeout_secs are
  removed from the [storage.postgres] sample. PostgresStorageConfig refuses
  them with the same unknown field error as read_replica_url. A commented
  catalog_pool_size line lists the third key the struct has, as the admin
  guide does. The rest of the section 3 sample is #585.
- 01-requirements REQ-PG-008: the pointer names sections 5.2 and 5.3 of
  document 04, since the code sketch is in 5.2 and the prose in 5.3.

Corrections to the message of 204827d. The flag reaches the engine as
GetItemInput::consistent_read and does not reach storage. The SQLite,
PostgreSQL and MongoDB backends serve every read from the copy that took the
write. The Cassandra backend reads at LOCAL_QUORUM since #945. The struct
that refuses unknown fields is PostgresStorageConfig, not PostgresConfig.
docs/todo-index.md has no change in this PR, because its line already reads
in the future tense.

Refs #561
Section 4.7 of the high-level design now says that base table and local
secondary index reads are strongly consistent. It also says that GSI rows go
through the propagation queue. The single-node paragraph of document 04, section 5.3, still said that all
reads are strongly consistent. This PR relabels that paragraph. It now says
the same as section 4.7 and points at section 6 for the queue.

Refs #561

Signed-off-by: Lee Hannigan <29015211+LeeroyHannigan@users.noreply.github.com>
@LeeroyHannigan

Copy link
Copy Markdown
Collaborator Author

The message of 6dcd780 corrects the four statements your review names in the message of 204827d. This repository squashes with the commit messages, so the squash body on main carries the corrections. The flag reaches the engine as GetItemInput::consistent_read and does not reach storage. The SQLite, PostgreSQL and MongoDB backends serve every read from the copy that took the write. Cassandra reads at LOCAL_QUORUM since #945, a quorum rather than that copy. The struct that refuses the keys is PostgresStorageConfig, not PostgresConfig. docs/todo-index.md has no change in this PR, because its line already reads in the future tense.

@demohan demohan left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The items from the earlier review are resolved. Sections 5.2 and 5.3 of the storage design now separate today's single-node behaviour from the proposed replica mode, REQ-PG-008 cites both, and read_replica and read_pool appear nowhere under crates/, where item reads use data_pool. The timeout keys in the configuration doc parse through PostgresStorageConfig with catalog_pool_size commented out and set, an init config with those lines starts and answers /health, and the old block fails with unknown field `connection_timeout_secs` . The GSI sentence holds: reading straight after a PutItem, 100 writes in two runs each, GetItem missed 0 times on a PostgreSQL server and 1 and 0 times on the service, an LSI Query missed 0 times on both, a GSI Query missed on both (98 and 99 here, 2 and 4 on the service), and ConsistentRead=true on a GSI answers the same ValidationException on both. The last bullet of 4.7 depends on doc 11 Stage 1, so it stays true after #559. The 6dcd780 message corrects the four statements. The branch merges onto main cleanly, no link breaks, doc_version_literals passes, and CI is green on 52 checks.

docs/design/02-component-engine.md:272

Optional. GSI rows go through the propagation queue only when the index's delay is not 0; at delay 0 they are written in the base write's transaction (index.rs:213, :268, :384), and with index_propagation_delay_ms=0 a GSI Query read straight after the write missed 0 times in two runs. "Rows of a GSI with a non-zero propagation delay (default 10 ms) go through the queue" would hold in both cases. The same sentence is in 04-component-storage.md:493.

@LeeroyHannigan
LeeroyHannigan added this pull request to the merge queue Nov 25, 2026
Merged via the queue into main with commit 9e457a3 Nov 25, 2026
52 checks passed
@LeeroyHannigan
LeeroyHannigan deleted the docs/postgres-read-replica branch November 25, 2026 11:07
LeeroyHannigan added a commit that referenced this pull request Nov 25, 2026
#584 marked the PostgreSQL read replica section of the storage design as a
proposal, as this branch did. The merge keeps main's text, which also says
that a read on a global secondary index can lag the base table. It adds this
branch's sentence that the flag reaches the backend as
ReadOptions::consistent_read. The proposal's read_pool helper keeps this
branch's call with opts.consistent_read.
LeeroyHannigan added a commit that referenced this pull request Nov 25, 2026
Main at 9e457a3 (#584 landed after the previous merge). No conflict. The five docs files main changed merged on their own. Their new lines carry no em dash, no link outside docs/ and no release number. The strict site build passes on the merged tree.
LeeroyHannigan added a commit that referenced this pull request Nov 25, 2026
Main is at 80490c6, eight commits after the last merge (#596, #1173,
#398, #428, #544, #567, #584 and #588). One file conflicted:
crates/engine/src/query.rs.

#544 moves the Limit check and the parameter mix check of Query into
validate_query_request_body, which reads the raw body before
deserialization. This branch moves the same two checks to the start of
the handler, after deserialization. The merge keeps the checks of #544
and drops the copies of this branch, which no request can reach. It
keeps has_cond_op for the ConditionalOperator check.

The conflict hunks in handle_query:

- At the old Limit check, both sides remove the check. The merge keeps
  the comment of #544.
- Next, this branch keeps the variables of the mix check, and main
  keeps the index key schema. The merge keeps the key schema where this
  branch has it. It drops the mix check variables, which nothing reads
  now, and keeps the comment of #544 and has_cond_op.
- Before the ExclusiveStartKey check, this branch removes the filter
  operand checks, because its semantic pass runs them at parse time.
  #544 adds validate_key_condition_types there. The merge keeps the
  type check and drops the filter checks.

#544 refuses a begins_with value that is not an S or a B ahead of an
unused value (rows q5 and p4 of tests/test_query_key_value_types.py,
measured 2026-11-06). This branch checks unused values before the
table lookup, so the merged code gave the unused value message for
those two rows. The merge calls refuse_begins_with_on_number after the
key condition parse and removes the later call. The values of legacy
KeyConditions pass validate_legacy_conditions before that point.

Git merged four other files that both sides change, with no overlap:
crates/core/src/expression/key_condition.rs, crates/engine/src/lib.rs,
crates/storage-cassandra/tests/common/mod.rs and
docs/differences-from-dynamodb.md.
LeeroyHannigan added a commit that referenced this pull request Nov 25, 2026
Main is at 80490c6, six commits after the last merge (#398, #428,
#544, #567, #584 and #588). Two files conflicted.

crates/engine/src/lib.rs: this branch adds query_key_size_tests and
#544 adds query_key_values to the module list. The merge keeps both in
name order.

crates/engine/src/query.rs, two hunks in handle_query:

- This branch moves validate_query_select_index_support after the start
  key checks, and #544 replaces the Limit check with a comment. The
  merge removes the early Select check and keeps the comment of #544.
- Before the ExclusiveStartKey check, this branch adds
  validate_query_key_sizes and #544 adds validate_key_condition_types.
  The merge runs the type check first, because the key size comment
  records a wrong-typed key value ahead of the size (measured
  2026-10-23). On a single-attribute key schema #544 checks the type
  there and not in resolve_key_schema_with, so the key size comment now
  says "checked above".
LeeroyHannigan added a commit that referenced this pull request Nov 25, 2026
Main is at 80490c6, six commits after the last merge (#398, #428,
#544, #567, #584 and #588). One file conflicted:
crates/engine/src/query.rs.

This branch moves the table lookup, the index lookup and the index key
schema below the request-stage checks. #544 moves the Limit check and
the parameter mix check into validate_query_request_body, which reads
the raw body before deserialization. Three conflict hunks in
handle_query follow from this:

- After deserialization, this branch keeps the Limit check and main
  keeps the table lookup. The merge keeps the lookup where this branch
  has it and puts the comment of #544 in place of the Limit check.
- Next, this branch keeps the variables of the mix check and main keeps
  the index key schema. The merge keeps the key schema where this
  branch has it. It drops the mix check variables, which nothing reads
  now, and keeps the comment of #544 and has_cond_op.
- Before the ExclusiveStartKey check, this branch removes the filter
  operand checks, because its semantic pass runs them at parse time.
  #544 adds validate_key_condition_types there. The merge keeps the
  type check and drops the filter checks.

#544 refuses a begins_with value that is not an S or a B ahead of an
unused value (rows q5 and p4 of tests/test_query_key_value_types.py,
measured 2026-11-06). This branch checks unused values before the
table lookup, so the merged code gave the unused value message for
those two rows. The merge calls refuse_begins_with_on_number after the
key condition parse and removes the later call. The values of legacy
KeyConditions pass validate_key_conditions before that point.

Git merged four other files that both sides change, with no overlap:
crates/core/src/expression/key_condition.rs, crates/engine/src/lib.rs,
docs/differences-from-dynamodb.md and crates/engine/src/decimal_digits.rs,
which both sides add with the same content.
LeeroyHannigan added a commit that referenced this pull request Nov 25, 2026
Main is at 14ade59. This branch last had main at 018715e, through
fix/query-key-value-types. Since then, these eleven commits merged
into main: #1280, #1009, #596, #1173, #398, #428, #544, #567, #584,
#588 and #864.

#544 is the squash of fix/query-key-value-types, which was the base
branch of this PR. This branch already holds the last head of that
branch, 31c5f3d. Main has the same version of each conflicted file as
31c5f3d. So each conflict hunk has the lines of #544 on one side.
The other side has the change of this branch to the same lines. The
merge keeps the version of this branch in each file:

- crates/engine/src/query_key_values.rs: this branch makes two
  constants and four functions pub(crate) for the Scan checks, and
  re-exports three functions of unreadable.rs. It reads a number in
  Segment and TotalSegments as it reads one in Limit, with the dates
  in the doc comment of shape_fault_first. It passes
  validate_no_parameter_mix to unreadable_value_checks.
- crates/engine/src/query_key_values/unreadable.rs: this branch makes
  three functions pub(crate). unreadable_value_checks takes the
  parameter mix check as a parameter, so this branch deletes the
  import of validate_no_parameter_mix.
- crates/server/src/request_helpers.rs: this branch runs the Scan
  request checks before the IAM decision, as main does for Query.
- tests/test_query_leading_keys_values.py: this branch moves the setup
  of TestLeadingKeysWithAnInvalidKeyValue to the base class
  ManagementPrincipals, which
  tests/test_scan_checks_before_authorization.py imports.

Git merged crates/engine/src/lib.rs with no conflict. Main compiles
three modules only off wasm32 (backup, import_export_io and
private_fs), and adds the modules backup_requests and pre_dispatch.
This branch adds the module scan_request and changes the doc comment
of validate_enum_fields.
LeeroyHannigan added a commit that referenced this pull request Nov 25, 2026
Main is at 14ade59. This branch last had main at 018715e, through
fix/query-key-value-types. Since then, these eleven commits merged
into main: #1280, #1009, #596, #1173, #398, #428, #544, #567, #584,
#588 and #864.

#544 is the squash of fix/query-key-value-types, which was the base
branch of this PR. This branch already holds the last head of that
branch, 31c5f3d. Main has the same version of each conflicted file as
31c5f3d. So each conflict hunk has the lines of #544 on one side.
The other side has the change of this branch to the same lines. The
merge keeps the version of this branch in each file:

- crates/engine/src/query_key_values.rs: the dates and the order in
  the module and function doc comments, the call of
  validate_condition_value_numbers, and the two functions
  validate_condition_value_numbers and refuse_first_fault.
- crates/engine/src/query_key_values/request_order_tests.rs: the
  import of Value and the test
  legacy_condition_values_get_the_number_check.
- tests/test_query_key_value_types.py: the dates in the docstring, the
  nn_table fixture and the helpers eq, N1, KC_ABC and QF_BOB. The merge
  also keeps the rows k1 to k16, and nn_table in the tables fixture and
  the control test.

Git merged crates/engine/src/lib.rs with no conflict. This branch
changes that file only through the commits of #544, so the merged file
is the file of main.
LeeroyHannigan added a commit that referenced this pull request Nov 25, 2026
Main is at 14ade59. This branch last had main at 018715e, through
fix/query-key-value-types. Since then, these eleven commits merged
into main: #1280, #1009, #596, #1173, #398, #428, #544, #567, #584,
#588 and #864.

#544 is the squash of fix/query-key-value-types, which was the base
branch of this PR. This branch already holds the last head of that
branch, 31c5f3d. Main has the same version of each conflicted file as
31c5f3d. So each conflict hunk has the lines of #544 on one side.
The other side has the change of this branch to the same lines. The
merge keeps the version of this branch in each file:

- crates/core/src/partiql/params.rs: this branch deletes the two
  base64 imports, because decode_base64 replaces check_base64.
- crates/core/src/types/attribute_value.rs: this branch adds
  BASE64_TEXTS, decode_base64 and is_base64_refusal after the two
  constants that #544 makes public.
- crates/core/src/types/mod.rs: this branch adds decode_base64 and
  is_base64_refusal to the names that #544 re-exports.
- tests/test_query_leading_keys_values.py and
  tests/test_query_value_shapes.py: this branch moves _raw_query to
  tests/raw_signed_request.py as client_post, and calls client_post in
  its place. No other test file on main calls _raw_query.

Git merged crates/engine/src/lib.rs with no conflict. Main compiles
three modules only off wasm32 (backup, import_export_io and
private_fs), and adds the modules backup_requests and pre_dispatch.
This branch adds serialization_exception and calls it from
deserialize_error.
LeeroyHannigan added a commit that referenced this pull request Nov 25, 2026
The base merges main at 14ade59. That brings #544 as a squash and
ten other commits: #1280, #1009, #596, #1173, #398, #428, #567, #584,
#588 and #864. The merge has no conflict. No file has changes on both
sides.
LeeroyHannigan added a commit that referenced this pull request Nov 25, 2026
The base merges main at 14ade59. That brings #544 as a squash and
ten other commits: #1280, #1009, #596, #1173, #398, #428, #567, #584,
#588 and #864. The merge has no conflict. No file has changes on both
sides.
LeeroyHannigan added a commit that referenced this pull request Nov 25, 2026
The base merges main at 14ade59. That brings #544 as a squash and
ten other commits: #1280, #1009, #596, #1173, #398, #428, #567, #584,
#588 and #864.

One file conflicted: crates/engine/src/import_export.rs. #1009 moves
the body of handle_import_table to import_table in the new file
crates/engine/src/import_export/files.rs. The wasm32 build replaces
that file with a stand-in that refuses the operation.
handle_import_table keeps the enabled check and calls
files::import_table.

This branch changes the body that #1009 moves. When read_items finds a
line that it cannot read, the import keeps the items before that line.
It counts the line as one error and reads no more of the file.

The merge keeps the code of main in import_export.rs, with the doc
comment of this branch on handle_import_table. It makes the three
changes of this branch to the body in files.rs:

- The variable read holds the result of read_items: the items and the
  line that the reader cannot read.
- The loop takes the items, then that line. At that line it logs the
  line number and the fault, counts one error and ends the import.
- The comment over the FAILED status adds the date 2026-11-22, for the
  lines that the import cannot read.

The body of import_table in files.rs is now the same as the body of
handle_import_table at the head of this branch.

Git merged docs/manuals/07-upgrade-manual.md with no conflict. #398
adds its v1.1.0 entry at the top of "Behavior Changes by Release".
This branch adds its v1.1.0 entry at the end of that section.
LeeroyHannigan added a commit that referenced this pull request Nov 25, 2026
The base merges main at 14ade59. That brings #544 as a squash and
ten other commits: #1280, #1009, #596, #1173, #398, #428, #567, #584,
#588 and #864. The merge has no conflict.

Git merged crates/engine/src/lib.rs, the one file with changes on both
sides. Main compiles three modules only off wasm32 (backup,
import_export_io and private_fs), and adds the modules backup_requests
and pre_dispatch. This branch adds single_write_refusal after
deserialize_error.
LeeroyHannigan added a commit that referenced this pull request Nov 25, 2026
The base branch now holds the fix rounds of #491 and #523, and main up to 9e457a3. Six files conflicted. Each keeps the base's text, with this branch's punctuation and status edits on the same lines.

- docs/design/02-high-level-design.md: main's paragraph on the crate dependencies (#1009) and the read replica proposal (#584), with this branch's semicolons and colons in place of the dashes.
- docs/design/03-component-core.md: main's sentence on the crypto module (#1009), with a colon for the dash.
- docs/design/04-component-storage.md: main's IdempotentMismatch line (#526) in the list this branch writes with colons, and main's read replica paragraph (#584), which has no dash.
- docs/design/13-storage-mongodb.md: main's AT_TIMESTAMP iterator line (#468), and colons after the two engine names.
- docs/manuals/03-usage-guide.md: the section stays a pointer to the Feature Status table. The Global Tables cell that #491 fixed moves to that table on the differences page.
- docs/storage-backends.md: the base's Markdown links, Cassandra image and container link, with this branch's experimental label and Cassandra version. The MongoDB bullet is the base's. The Cassandra bullet keeps the facts of both sides. The one-instance sentence names three backends, as on this branch, with the base's link.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

v1 Needed for the 1.0 release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] Docs describe a PostgreSQL read replica mode (read_replica_url) the backend does not have

3 participants