Reduce risk of accidentally running temp-install regression tests against
authorPeter Eisentraut <peter_e@gmx.net>
Fri, 28 Nov 2008 12:45:34 +0000 (12:45 +0000)
committerPeter Eisentraut <peter_e@gmx.net>
Fri, 28 Nov 2008 12:45:34 +0000 (12:45 +0000)
commit563341d12a53cd7bd9c5923bfb75c28e1bef3f04
tree6e7aef734e898cdc8cfeef6896f58009996d3900
parent0c1951c36fdc6558b334ad4c14121952a530fe00
Reduce risk of accidentally running temp-install regression tests against
a mismatching installation.  Pick a default port number calculated from the
version number, and try a few times with other numbers if that one doesn't
work.  Check if we can connect to the port before starting our own postmaster,
to detect some other server already running there.  To simplify the code,
drop --temp-port option and use --port for both temp-install and pre-installed
case.
src/test/regress/GNUmakefile
src/test/regress/pg_regress.c