-
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
Merged
sethsamuel
merged 26 commits into
master
from
seth.samuel/DBMON-4860-upgrade-psycopg-to-3-for-pgbouncer-integration
Jan 23, 2025
Merged
Changes from all commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
e725be3
WIP
sethsamuel 81e2811
WIP
sethsamuel 4416dac
v3
sethsamuel 00c8977
Changelog
sethsamuel 97d27ae
Use source
sethsamuel 1e1f1eb
Comments
sethsamuel e2bb762
Binary
sethsamuel 98a5c9b
Build psycopg (#19326)
alopezz 84c80b5
Merge remote-tracking branch 'origin/master' into seth.samuel/DBMON-4…
sethsamuel 8adba05
WIP
sethsamuel 23c1365
Merge fix
sethsamuel 1703034
Dep
sethsamuel 77cb2d2
Fix license
sethsamuel bd2775e
Merge remote-tracking branch 'origin/master' into seth.samuel/DBMON-4…
sethsamuel dc3c4f5
WIP
sethsamuel c8822e7
WIP
sethsamuel 64549b3
Changelog
sethsamuel ae94e13
test
sethsamuel 1c7364d
test
sethsamuel 7519727
Version
sethsamuel 3af7067
Changelog
sethsamuel 2147a9a
Always add bin path to $PATH on macos builders
alopezz 4df3963
Add a dummy change to test that a macos build with a cache hit works
alopezz 29f1f7a
Revert "Add a dummy change to test that a macos build with a cache hi…
alopezz 24d8e2d
Merge remote-tracking branch 'origin/alopez/builders-fix-macos-bin-pa…
sethsamuel cd64eea
Merge branch 'master' into seth.samuel/DBMON-4860-upgrade-psycopg-to-…
sethsamuel File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/bin/bash | ||
|
||
set -ex | ||
|
||
sudo apt update | ||
sudo apt install -y --no-install-recommends build-essential python3-dev libpq-dev |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -46,8 +46,6 @@ prometheus-client,PyPI,Apache-2.0,Copyright 2015 The Prometheus Authors | |
protobuf,PyPI,BSD-3-Clause,Copyright 2008 Google Inc. All rights reserved. | ||
psutil,PyPI,BSD-3-Clause,"Copyright (c) 2009, Jay Loden, Dave Daeschler, Giampaolo Rodola" | ||
psycopg,PyPI,LGPL-3.0-only,Copyright (C) 2020 The Psycopg Team | ||
psycopg2-binary,PyPI,BSD-3-Clause,Copyright 2013 Federico Di Gregorio | ||
psycopg2-binary,PyPI,LGPL-3.0-only,Copyright (C) 2013 Federico Di Gregorio | ||
pyOpenSSL,PyPI,Apache-2.0,Copyright The pyOpenSSL developers | ||
pyasn1,PyPI,BSD-3-Clause,"Copyright (c) 2005-2019, Ilya Etingof <[email protected]>" | ||
pycryptodomex,PyPI,BSD-2-Clause,Copyright 2014 Helder Eijs | ||
|
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Removed dependency on psycopg2 |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Upgrade pgbouncer to psycopg3 |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Removed dependency on psycopg2 |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.
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.
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 aBEGIN
, which breaks many of the queries.