Closed cemremengu closed 1 year ago
I don't believe something like that is currently exposed. If libpq offers similar functionality we could mirror that here.
You can also shuffle the hosts list yourself depending on how your code is set up.
Thanks for the quick reply. I think libpq does not support it yet but as far as I understand its around the corner (or already released)
Ah cool. Once that API is stabilized we can reflect it here.
This would be an awesome feature that can save a lot of people from having to use haproxy or pgcat just for this functionality!
Load balancing is added to postgresql version 16: https://www.postgresql.org/docs/16/libpq-connect.html
Does this driver support specifying
LoadBalance
option like the JDBC driver?