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

Feature request: A connection property to retreive host name used in specific connection #1213

Open
aldem opened this issue Dec 3, 2024 · 0 comments

Comments

@aldem
Copy link

aldem commented Dec 3, 2024

When multiples hosts are specified, either pool or connection could use any of them (depending on target_session_attrs).

It would be nice to have a way to retrieve the actual (connected) host name, as it was provided in the list, that was used to create a specific connection.

Currently, I found no easy way how to do this. Of course, it is possible to use SELECT inet_server_addr() but this only returns an address, which is not always useful.

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant