-
Notifications
You must be signed in to change notification settings - Fork 99
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
ADBC Python Postgres - Stuck connections to the database #1881
Comments
Is it possible to share the log? I think we'll have to set up a pod for 12 hours and see if we can reproduce at all... |
Do you set timeout related parameters such as Could you show Do you pass |
One other thing, if we want to try and reproduce this, what was the PostgreSQL version? |
Hello all, @lidavidm :
The PG version:
@kou :
|
@kou : |
Thanks. Interesting, there's occasional reference to errors like this elsewhere 1, but usually the suggestion is that something is port-scanning Postgres. That doesn't seem likely here. On the other hand, if the client were doing something wrong after a long time, restarting the client completely should presumably reset that. So instead it seems like something borks the server. Just to clarify, though: (1) Did you try restarting the Postgres server, too? |
|
Thanks. I'll try to find time to set up a container and reproduce a setup like this. |
Sorry, it's looking like I won't have time to investigate this anytime soon. This is on my backlog and I do hope to get to it but any help here is welcome |
Does it matter at all if you remove pandas and use the connection directly to parse the results? Its possible there is also something with pandas that is causing the problem |
What happened?
Context before the bug (working):
pd.read_sql
from Pandas and a SQLalchemy engineSwitching to ADBC:
adbc_driver_postgresql
'sdbapi
connection withpd.read_sql
Problem:
pd.read_sql
(know this through caching) and then wait indefinitely.How can we reproduce the bug?
"postgresql://{user}:{password}@{host}:{port}/{db}"
formatted with the proper valuesselect * from TABLE_NAME
to selecting specific columns on a range of specific datesEnvironment/Setup
python 3.11
pandas == 2.2.2
adbc_driver_postgresql==0.11.0
adbc-driver-manager==0.11.0
The text was updated successfully, but these errors were encountered: