-
Notifications
You must be signed in to change notification settings - Fork 157
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
Does oracle_fdw support test query to check cached sesssion valid #624
Comments
No, oracle_fdw has no support for an "are you still there?" query. I don't see the benefit of such a query: if the test query hangs and runs into a timeout, are you any better off than if your actual query hangs? Issue #603 is somewhat similar. Perhaps the remedies that Phil suggested there can help. Another thing you can do is to change the TCP keepalive settings on the machine where PostgreSQL is running. Very often, that is enough to combat a broken network setup like yours. On what operating system is the PostgreSQL server running? |
Hi, |
Many thanks ! I have a solution. You should set kernel parameters on both the PG Server and the Oracle Server. If I only set the parameters on PG server, this problem happens again. Example:
|
Thanks for the feedback! |
When I attempt to query in Oracle database using the Oracle Foreign Data Wrapper (Oracle FDW), I often encounter an issue. This problem is caused by the security policies of the network firewall, which results in connections timing out and being closed. However, the Oracle FDW's connection cache does not receive timely notifications of the closed connections. As a consequence, Oracle FDW continues to use expired connections during queries, leading to query timeouts.
Does the session connecting to Oracle through oracle_fdw have a regular health check mechanism like a connection pool?
The text was updated successfully, but these errors were encountered: