Commit [1] implements Fisher-Yates shuffling algorithm to shuffle connection addresses, in two places.
The attached patch moves the duplicated code to a function, and calls it in those 2 places. [1]: Support connection load balancing in libpq 7f5b19817eaf38e70ad1153db4e644ee9456853e Best regards, Gurjeet https://Gurje.et Postgres Contributors Team, http://aws.amazon.com
v0-0001-Reduce-code-duplication-in-fe-connect.c.patch
Description: Binary data