Skip to content
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

Draft
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

sethsamuel
Copy link
Contributor

What does this PR do?

Motivation

Review checklist (to be filled by reviewers)

  • Feature or bugfix MUST have appropriate tests (unit, integration, e2e)
  • Add the qa/skip-qa label if the PR doesn't need to be tested during QA.
  • If you need to backport this PR to another branch, you can add the backport/<branch-name> label to the PR and it will automatically open a backport PR once this one is merged

Copy link

codecov bot commented Dec 30, 2024

Codecov Report

Attention: Patch coverage is 89.58333% with 5 lines in your changes missing coverage. Please review.

Project coverage is 87.61%. Comparing base (a0ac38c) to head (e2bb762).
Report is 1 commits behind head on master.

Additional details and impacted files
Flag Coverage Δ
activemq ?
cassandra ?
hive ?
hivemq ?
hudi ?
ignite ?
jboss_wildfly ?
kafka ?
pgbouncer 92.11% <89.58%> (+0.44%) ⬆️
presto ?
solr ?

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:
Copy link
Contributor Author

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.

@sethsamuel sethsamuel changed the title Upgrade pgbouncer to psycopg3 Upgrade PGBouncer to psycopg3 Dec 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant