Choose ports for test servers less likely to result in conflicts

Andrew Dunstan <andrew@dunslane.net>

Commit: 2e9dfa5e02e63732937fca270bbee77660401b04
Author: Andrew Dunstan <andrew@dunslane.net>
Date: 2024-07-08T15:40:58Z
Releases: 16.4
Choose ports for test servers less likely to result in conflicts

If we choose ports in the range typically used for ephemeral ports there
is a danger of encountering a port conflict due to a race condition
between the time we choose the port in a range below that typically used
to allocate ephemeral ports, but higher than the range typically used by
well known services.

Author: Jelte Fenema-Nio, with some editing by me.

Discussion: https://postgr.es/m/d6ee8761-39d1-0033-1afb-d5a57ee056f2@gmail.com

Backpatch to all live branches (12 and up)

Files

PathChange+/−
src/test/perl/PostgreSQL/Test/Cluster.pm modified +11 −2