Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dPanf-0007Ms-6P for pgsql-hackers@arkaria.postgresql.org; Mon, 26 Jun 2017 20:39:59 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dPand-0006MR-Tk for pgsql-hackers@arkaria.postgresql.org; Mon, 26 Jun 2017 20:39:57 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dPand-0006MH-4b for pgsql-hackers@postgresql.org; Mon, 26 Jun 2017 20:39:57 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dPana-0006PV-8O for pgsql-hackers@postgresql.org; Mon, 26 Jun 2017 20:39:56 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id v5QKdoBb019385; Mon, 26 Jun 2017 16:39:50 -0400 From: Tom Lane To: Andres Freund cc: Jeff Janes , Michael Paquier , PostgreSQL mailing lists Subject: Re: Reducing pg_ctl's reaction time In-reply-to: <18890.1498508760@sss.pgh.pa.us> References: <18444.1498428798@sss.pgh.pa.us> <24992.1498504537@sss.pgh.pa.us> <18520.1498508356@sss.pgh.pa.us> <20170626202356.qybnpn5li2ke4ioc@alap3.anarazel.de> <18890.1498508760@sss.pgh.pa.us> Comments: In-reply-to Tom Lane message dated "Mon, 26 Jun 2017 16:26:00 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <19383.1498509590.1@sss.pgh.pa.us> Date: Mon, 26 Jun 2017 16:39:50 -0400 Message-ID: <19384.1498509590@sss.pgh.pa.us> List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org I wrote: > Andres Freund writes: >> It'd not be unreasonble to check pg_control first, and only after that >> indicates readyness check via the protocol. > Hm, that's a thought. The problem here isn't the frequency of checks, > but the log spam. Actually, that wouldn't help much as things stand, because you can't tell from pg_control whether hot standby is active. Assuming that we want "pg_ctl start" to come back as soon as connections are allowed, it'd have to start probing when it sees DB_IN_ARCHIVE_RECOVERY, which means Jeff still has a problem with long recovery sessions. We could maybe address that by changing the set of states in pg_control (or perhaps simpler, adding a "hot standby active" flag there). That might have wider consequences than we really want to deal with post-beta1 though. regards, tom lane -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers