]> granicus.if.org Git - postgresql/commit
Prevent creation of postmaster's TCP socket during pg_upgrade testing.
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 3 Jan 2013 23:34:51 +0000 (18:34 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 3 Jan 2013 23:34:51 +0000 (18:34 -0500)
commit78a5e738e97b4dda89e1bfea60675bcf15f25994
treea986007e1c644954cc8aaef6ac41e0b6c357e277
parentb0daba57bb50ca8bfb9d3ec886c5f86f7b3c006b
Prevent creation of postmaster's TCP socket during pg_upgrade testing.

On non-Windows machines, we use the Unix socket for connections to test
postmasters, so there is no need to create a TCP socket.  Furthermore,
doing so causes failures due to port conflicts if two builds are carried
out concurrently on one machine.  (If the builds are done in different
chroots, which is standard practice at least in Red Hat distros, there
is no risk of conflict on the Unix socket.)  Suppressing the TCP socket
by setting listen_addresses to empty has long been standard practice
for pg_regress, and pg_upgrade knows about this too ... but pg_upgrade's
test.sh didn't get the memo.

Back-patch to 9.2, and also sync the 9.2 version of the script with HEAD
as much as practical.
contrib/pg_upgrade/test.sh