Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #116 +/- ##
==========================================
- Coverage 95.03% 94.98% -0.05%
==========================================
Files 27 33 +6
Lines 22295 24557 +2262
==========================================
+ Hits 21187 23325 +2138
- Misses 1108 1232 +124 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
1c00072 to
c537811
Compare
- Bump aws-lc-rs from 1.17.1 to 1.18.1 - Bump aws-lc-sys from 0.42.0 to 0.45.0 - Update futures-core from 0.3.32 to 0.3.34 - Bump pg_walstream from 0.8.0 to 0.8.1 - Update rustls from 0.23.41 to 0.23.45 - Bump rustls-webpki from 0.103.13 to 0.103.15 - Update serde and related crates from 1.0.228 to 1.0.229 - Bump smallvec from 1.15.2 to 1.16.1 - Update socket2 from 0.6.4 to 0.6.5 - Update tokio from 1.52.3 to 1.53.1 - Bump tokio-rustls from 0.26.4 to 0.26.5 - Update tokio-util from 0.7.18 to 0.7.19 - Update webpki-roots from 1.0.8 to 1.0.9 - Update syn to version 3.0.5 in multiple examples Implement snapshot planning and row streaming for logical replication - Introduced `plan.rs` to handle the planning logic for initial snapshots, including the construction of `COPY` statements and catalog queries for published tables. - Added `SnapshotTable` and `CatalogRow` structs to represent tables and their metadata. - Implemented functions to build SQL queries for catalog retrieval and `COPY` statements based on publication configurations. - Created `rows.rs` to manage the streaming of snapshot rows, including handling the replication stream and decoding row data. - Developed the `SnapshotRows` struct to encapsulate the snapshot process, providing methods for row retrieval and stream management. - Added comprehensive unit tests to ensure the correctness of the snapshot planning and row streaming functionalities. feat: add initial snapshot example for PostgreSQL logical replication - Introduced a new example demonstrating managed initial snapshots using PostgreSQL's logical replication. - Implemented a Cargo.toml file to define the package and its dependencies. - Created a main.rs file that sets up a PostgreSQL table, seeds it with initial data, and demonstrates the snapshot and streaming phases. - Utilized `pg_walstream` for handling replication and streaming events, ensuring no gaps or duplicates in data. - Added logging to track the number of rows processed during the snapshot and streaming phases.
c537811 to
97c12d0
Compare
|
@claude[agent] review |
Reviewed. Gate is clean locally:
The parts I checked hardest and found correct: the Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
Implement snapshot planning and row streaming for logical replication
plan.rsto handle the planning logic for initial snapshots, including the construction ofCOPYstatements and catalog queries for published tables.SnapshotTableandCatalogRowstructs to represent tables and their metadata.COPYstatements based on publication configurations.rows.rsto manage the streaming of snapshot rows, including handling the replication stream and decoding row data.SnapshotRowsstruct to encapsulate the snapshot process, providing methods for row retrieval and stream management.