Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gROIU-00030s-64 for pgsql-hackers@arkaria.postgresql.org; Mon, 26 Nov 2018 21:20:02 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gROIT-0007R4-0p for pgsql-hackers@arkaria.postgresql.org; Mon, 26 Nov 2018 21:20:01 +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_SHA1:256) (Exim 4.89) (envelope-from ) id 1gROIS-0007Qt-Nm for pgsql-hackers@lists.postgresql.org; Mon, 26 Nov 2018 21:20:00 +0000 Received: from forward501j.mail.yandex.net ([2a02:6b8:0:801:2::111]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gROIQ-0002I8-I6 for pgsql-hackers@postgresql.org; Mon, 26 Nov 2018 21:20:00 +0000 Received: from mxback13j.mail.yandex.net (mxback13j.mail.yandex.net [IPv6:2a02:6b8:0:1619::88]) by forward501j.mail.yandex.net (Yandex) with ESMTP id 51F6133800F9; Tue, 27 Nov 2018 00:19:56 +0300 (MSK) Received: from localhost (localhost [::1]) by mxback13j.mail.yandex.net (nwsmtp/Yandex) with ESMTP id LedrtR67tA-JtYqcKYn; Tue, 27 Nov 2018 00:19:55 +0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zsrv.org; s=mail; t=1543267195; bh=cehcbciOXIqXUP76c3qqHl6qugN8x940d7qn3TiVw70=; h=From:To:Cc:In-Reply-To:References:Subject:Date:Message-Id; b=C4YSztNifr1gVgh6UBKpkLi4aP1PbWyJ461S6SBjJNFHAVmnT7Fy0vIMhz0I69Hkx yNWDOXYuVRi692mU9+ZwQfnz/C7a5O4abv32MbxzmPbdK+EiKTPF4mkPVFizbbWNKz 8L02nCwgKGSDEo7f/E8If8LKhHBK+cZ4BDG6HFVs= Authentication-Results: mxback13j.mail.yandex.net; dkim=pass header.i=@zsrv.org Received: by sas1-4b7566131ec9.qloud-c.yandex.net with HTTP; Tue, 27 Nov 2018 00:19:55 +0300 From: Sergei Kornilov To: Stephen Frost Cc: Michael Paquier , Peter Eisentraut , Postgres hackers In-Reply-To: <20181126204855.GA3415@tamriel.snowman.net> References: <20181126002849.GD1776@paquier.xyz> <27802171543235530@iva2-6ec8f0a6115e.qloud-c.yandex.net> <20181126131640.GD14598@paquier.xyz> <20181126151852.GW3415@tamriel.snowman.net> <29465041543250389@iva4-f774db2b5297.qloud-c.yandex.net> <20181126172118.GY3415@tamriel.snowman.net> <145311543257278@sas1-0a6c2e2b59d7.qloud-c.yandex.net> <20181126191253.GZ3415@tamriel.snowman.net> <457381543264217@iva5-84bc572481fe.qloud-c.yandex.net> <20181126204855.GA3415@tamriel.snowman.net> Subject: Re: pgsql: Integrate recovery.conf into postgresql.conf MIME-Version: 1.0 X-Mailer: Yamail [ http://yandex.ru ] 5.0 Date: Tue, 27 Nov 2018 00:19:55 +0300 Message-Id: <459131543267195@sas1-4b7566131ec9.qloud-c.yandex.net> Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=utf-8 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hi > I'd encourage you to look through the diff after you're finished hacking > before sending it to the list, in case things get left in that should be > removed, as below... I am so sorry. I have a look before sending, but... It's night in my timezone. I will fix tomorrow. >>  + if (targetSettingsCount > 1) >>  + ereport(FATAL, >>  + (errcode(ERRCODE_INVALID_PARAMETER_VALUE), >>  + errmsg("can not specify multiple recovery targets"))); > > Doesn't look like you changed this based on my prior comment..? Do you mean this one? > I think I would have done 'if (targetSettingsCount != 1)' here. To be sure, we need check we have one recovery target without standby mode and none or one in standby mode? Or some another check? regards, Sergei