-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgrade PGBouncer to psycopg3 #19325
Upgrade PGBouncer to psycopg3 #19325
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files
Flags with carried forward coverage won't be shown. Click here to find out more. |
@@ -73,47 +74,46 @@ def _collect_stats(self, db): | |||
metric_scope.append(SERVERS_METRICS) | |||
|
|||
try: | |||
with db.cursor(cursor_factory=pgextras.DictCursor) as cursor: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PG3 with
automatically starts a transaction, i.e., adds a BEGIN
, which breaks many of the queries.
…860-upgrade-psycopg-to-3-for-pgbouncer-integration
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
…t works" This reverts commit 4df3963.
…th' into seth.samuel/DBMON-4860-upgrade-psycopg-to-3-for-pgbouncer-integration
…3-for-pgbouncer-integration
* WIP * WIP * v3 * Changelog * Use source * Comments * Binary * Build psycopg (#19326) * WIP * Merge fix * Dep * Fix license * WIP * WIP * Changelog * test * test * Version * Changelog * Always add bin path to $PATH on macos builders * Add a dummy change to test that a macos build with a cache hit works * Revert "Add a dummy change to test that a macos build with a cache hit works" This reverts commit 4df3963. --------- Co-authored-by: Alex Lopez <[email protected]> Co-authored-by: Alex Lopez <[email protected]> 5b65299
This reverts commit 5b65299.
* Revert "Upgrade PGBouncer to psycopg3 (#19325)" This reverts commit 5b65299. * Changelog --------- Co-authored-by: Enrico Donnici <[email protected]>
* Revert "Upgrade PGBouncer to psycopg3 (#19325)" This reverts commit 5b65299. * Changelog --------- Co-authored-by: Enrico Donnici <[email protected]> (cherry picked from commit d6358fb)
* Revert "Upgrade PGBouncer to psycopg3 (#19325)" This reverts commit 5b65299. * Changelog --------- Co-authored-by: Enrico Donnici <[email protected]>
* Revert "Upgrade PGBouncer to psycopg3 (#19325)" This reverts commit 5b65299. * Changelog --------- Co-authored-by: Enrico Donnici <[email protected]> d6358fb
* Revert "Update Posgres to psycopg3 (#19322)" This reverts commit b13f5e0. * Changelog * Dep * Revert "Upgrade PGBouncer to psycopg3" (#19497) * Revert "Upgrade PGBouncer to psycopg3 (#19325)" This reverts commit 5b65299. * Changelog --------- Co-authored-by: Enrico Donnici <[email protected]> --------- Co-authored-by: Enrico Donnici <[email protected]>
* Revert "Update Posgres to psycopg3 (#19322)" This reverts commit b13f5e0. * Changelog * Dep * Revert "Upgrade PGBouncer to psycopg3" (#19497) * Revert "Upgrade PGBouncer to psycopg3 (#19325)" This reverts commit 5b65299. * Changelog --------- Co-authored-by: Enrico Donnici <[email protected]> --------- Co-authored-by: Enrico Donnici <[email protected]> (cherry picked from commit a74f10a)
* Revert "Update Posgres to psycopg3 (#19322)" This reverts commit b13f5e0. * Changelog * Dep * Revert "Upgrade PGBouncer to psycopg3" (#19497) * Revert "Upgrade PGBouncer to psycopg3 (#19325)" This reverts commit 5b65299. * Changelog --------- Co-authored-by: Enrico Donnici <[email protected]> --------- Co-authored-by: Enrico Donnici <[email protected]> a74f10a
What does this PR do?
Updates psycopg to 3 for the pgbouncer integration.
Motivation
psycopg2 is deprecated and hasn't been updated in quite some time.
Review checklist (to be filled by reviewers)
qa/skip-qa
label if the PR doesn't need to be tested during QA.backport/<branch-name>
label to the PR and it will automatically open a backport PR once this one is merged