Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: sqliteai/sqlite-sync
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 1.1.3
Choose a base ref
...
head repository: sqliteai/sqlite-sync
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 1.1.4
Choose a head ref
  • 2 commits
  • 41 files changed
  • 2 contributors

Commits on Sep 21, 2026

  1. fix: fail fast on failed writes, hold one receive window, bound netwo…

    …rk requests (#64)
    
    Skipping a failed or denied change and moving the receive cursor past it could
    acknowledge data that was never stored, with no way to get it back. Applying a
    payload now stops at the first change it cannot write and returns that error, so
    the cause can be fixed and the payload delivered again.
    
    Advancing the receive checkpoint between chunks reset the server's paging and
    could replay a backlog, so it now stays fixed for a whole stream and moves once,
    after the final chunk applied.
    
    A value too large for one chunk was only as safe as its pieces: a stream could
    checkpoint past one it delivered incompletely, cleanup could remove the pieces of
    a value whose delivery had just resumed, and on PostgreSQL two transactions could
    each apply one piece, both succeed, and leave the value unapplied.
    
    Row-level security denials on PostgreSQL behaved differently from other failures,
    and block columns and grow-only-set tables could not be merged under a policy or a
    NOT NULL column at all. They now follow the same rules as any other write.
    
    An error lost its identity on the way out: SQLSTATE became a generic internal
    error, SQLite triggers reported a bare error code, and block failures gave no hint
    of which table or column they came from. Errors now carry their origin.
    
    A failed write could leave partial state behind — sync metadata claiming a row
    exists, a half-written block value, an update recorded as applied although it
    changed nothing — which stayed wrong even after the change was delivered again.
    
    A stalled server could hold a database connection indefinitely. Requests now have
    deadlines that also cover name resolution, bulk payload transfers are bounded on
    progress rather than on elapsed time so a slow link does not kill a healthy
    transfer, and a call in flight can be cancelled with sqlite3_interrupt().
    
    Those deadlines can be tuned per database with cloudsync_set, because a value that
    suits one network does not suit another and rebuilding to change it is not an
    option for an application that is already deployed.
    
    A few long-standing correctness issues are fixed as well: a forged payload header
    could make the extension allocate an arbitrary amount of memory, clock values
    above UINT32_MAX were truncated on incoming changes, primary-key doubles depended
    on the host byte order, and PostgreSQL savepoints disturbed the caller's snapshot
    and could free a tuple table still in use.
    
    See CHANGELOG.md for the full list and the details of each change.
    marcobambini authored Sep 21, 2026
    Configuration menu
    Copy the full SHA
    49ba88e View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    34cc3e1 View commit details
    Browse the repository at this point in the history
Loading