Alvaro Herrera wrote:
Well, duh, the checking is actually pretty simple. We just try to
connect with psql to the candidate port number before starting our own
postmaster and see if anyone is already there.
But what if something else is using the port? I think you could attempt
a bare connect().
Well, that goes beyond the scope of my original problem, which is that
the regression tests will silently run against a different installation.
If you run psql against a non-PostgreSQL server, you will hopefully
see more obvious failures. We could add this in the future, if there
are complaints from the field.
--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers