On Tue, Feb 14, 2017 at 7:03 AM, Nikolai Zhubr <n-a-zhubr@xxxxxxxxx> wrote: > 13.02.2017 23:58, Rader, David: >> >> How about using pg_isready? >> https://www.postgresql.org/docs/current/static/app-pg-isready.html > > But it doesn't actually communicate with the server AFAIK, just checks if a > connection could be established? Not exactly, it checks also if the server is able to accept connections or refusing them, after establishing the connection. The real deal is in that. For example it is possible to use pg_isready as well on a hot standby refusing connections because it did not reach yet a consistent point. -- Michael -- Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general