-
Notifications
You must be signed in to change notification settings - Fork 831
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
Add new property to specify local Socket Address #2081
Comments
Nice idea. Do you know if the feature already exists in I wonder how that should play with multiple DB hosts. |
agreed, this sounds like something we could use |
I am not a
|
Leveraging the OS routing tables is going to be a far more robust solution than anything which could be accomplished in the driver itself with connection properties. @vlsi's question on handling multiple db hosts on different subnets is one example of problems with trying to handle this in the driver. |
I thought this was more for use inside containers. Is it still simple inside containers ? |
My initial reaction is that using OS routing tables is still the better answer in containers, but my use of containers has been pretty limited. |
Do you need complementary stuff to the PR (#2082 ) before merging it on master for the next release? |
complementary stuff ? |
Do you need that I make other changes to the PR #2082 for you to be able to merge it to master and make a release? |
I'll deal with this today. Thanks! No guarantee on when we release tho |
closed by #2082 |
I'm submitting a ...
Describe the issue
We use PostgreSQL in hardened security context where remote connection is allowed by source ADDRESS in
pg_hba.conf
.On client side VM, we have several network interfaces. When we open JDBC connection toward remote PostgreSQL VM, the source address used by soket connection is always the first network interface. We can not specify another local socket address.
With MySQL, we can use property
localSocketAddress
, but no equivalent property exists with PostgreSQL.It would be very useful to add a new property to specify the Hostname or IP address to explicitly configure the interface that the driver will bind the client side of the TCP/IP connection to when connecting.
Driver Version?
42.2.19
Java Version?
11.0.10
OS Version?
Windows 10
PostgreSQL Version?
10
The text was updated successfully, but these errors were encountered: