perf(postgres): reduce round trips and retain native adapter controls - #822
Merged
Merged
Conversation
cofin
force-pushed
the
feat/postgres-adapters-optimization
branch
from
September 25, 2026 00:53
f90cc88 to
6105085
Compare
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #822 +/- ##
========================================
Coverage 81.06% 81.06%
========================================
Files 521 521
Lines 77879 78026 +147
Branches 11188 11224 +36
========================================
+ Hits 63129 63250 +121
- Misses 11121 11140 +19
- Partials 3629 3636 +7
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
cofin
force-pushed
the
feat/postgres-adapters-optimization
branch
7 times, most recently
from
September 27, 2026 18:44
ba2740b to
bebc624
Compare
cofin
force-pushed
the
feat/postgres-adapters-optimization
branch
from
September 27, 2026 22:06
83ff02a to
caf9e24
Compare
- AsyncPG: remove dead execution helpers, use singleton RNG and exception chain depth limit, optimize connection pool configs and ADK session round-trips. - Psycopg: simplify connection and driver hierarchy, remove dead passthrough methods, add typed query conversion helper without byte encoding, streamline ADK and Litestar session stores. - PsqlPy: remove obsolete driver wrappers and query cache indirection, consolidate connection pool configs, optimize Arrow conversion helpers. - CockroachDB (AsyncPG & Psycopg): inherit from PostgreSQL base driver and exception handlers, fix follower read transaction commit leak, specialize data dictionaries with per-connection version caching, align multi-region configuration options.
… psycopg feature registry
…eline execute_stack, and clean up typing
cofin
force-pushed
the
feat/postgres-adapters-optimization
branch
from
September 28, 2026 14:13
54eafca to
7463ad1
Compare
cofin
added a commit
that referenced
this pull request
Sep 29, 2026
## Summary Prepares the v0.65.0 release: - Bumps project version to `0.65.0` in `pyproject.toml` and updates `uv.lock`. - Updates `docs/changelog.rst` with the `v0.65.0` release notes covering all 14 PRs merged since `v0.64.0`: - IBM Db2 database adapter, SQLGlot dialect, and extension support (#811, #823). - Spanner and Spangres SQLGlot dialect isolation and AST support (#813). - Spanner adapter & store optimizations and release fixes (#814). - MySQL family adapter consolidation and data-dictionary reorganization (#821). - OracleDB adapter and store cleanup (#817, #823). - Native controls and performance optimizations for BigQuery (#812), PostgreSQL (#822), SQLite (#820), and MSSQL (#819). - Native Arrow capabilities and parse-once bindings (#818). - Fixture JSON export/load, conflict keys normalization, and upsert options (#824, #825, #826, #827). - Quoted and schema-qualified migration `version_table` identifiers (#815, #828, #829). - Builder CTE and column pruning ownership fixes (#829). ## Validation - `make docs` passed without warnings or errors. - `make lint` (ruff, prek, mypy, pyright, slotscheck, zizmor) passed with 0 errors. - Targeted unit tests passed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Reduce ADK store round trips with RETURNING, bound psycopg COPY buffering, and release failed psqlpy initialization attempts. Preserve native PostgreSQL configuration controls and quoted typing boundaries.
The psqlpy pipeline optimization remains deferred pending cancellation, preflight, and error-attribution fixes. Schema metadata caching remains deferred until DDL/search-path invalidation is defined. No gateway_region connection option is advertised; it is not a supported session setting.
Validation: 10 focused no-service native-option and cancellation tests passed; scoped Pyright reported 0 errors; scoped Ruff and git diff --check passed. Database-service integration, native compiled-wheel behavior, and documentation builds were not run locally. Hosted CI supplies the broader validation boundary.
A previous hosted integration attempt stopped before tests when Docker timed out contacting
https://icr.io/v2/while pulling a service image. This is an infrastructure validation block; no passing integration result is claimed.Rebase validation: based on main
a1067c856, with branch source changes preserved. Reconciled changelog entries, checked release-history preservation, and passed the focused documentation audit and whitespace checks. No runtime suites were rerun for this documentation-only update.CI repair: register the consumed BigQuery
storage_write_stream_typesetting in the shared feature contract (exact regression passed). Docker pre-pulls retry up to three times with bounded backoff and preserve failure after exhaustion. YAML, shell syntax, scoped zizmor, and fake-command success/retry/failure checks passed. No local database services or broad test suites were run. Fresh hosted checks are pending on the updated head.