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 1i2mhg-0006P7-9U for pgsql-committers@arkaria.postgresql.org; Wed, 28 Aug 2019 01:24:53 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1i2mhe-0006nR-Ps for pgsql-committers@arkaria.postgresql.org; Wed, 28 Aug 2019 01:24:50 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1i2mhc-0006gj-VS for pgsql-committers@lists.postgresql.org; Wed, 28 Aug 2019 01:24:50 +0000 Received: from wout4-smtp.messagingengine.com ([64.147.123.20]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.92) (envelope-from ) id 1i2mha-0002tm-1Y for pgsql-committers@lists.postgresql.org; Wed, 28 Aug 2019 01:24:47 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id 76AA14F2; Tue, 27 Aug 2019 21:24:44 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Tue, 27 Aug 2019 21:24:44 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm2; bh=EL3zoz00hgq/jA9IDSj0wz0Run3 5vAh3c7QX30rEeTA=; b=BcjX4B+DfMQkLt/f8jgVfAb3rm3T6j4nmjwYJrjmUNm HZvIUFG6RMxG+YQOBinTDJZfW6ke8rG2WQP8vHFudCrHxo/zDQH5+h/h2q/Lxd8M SxCb/BPS9SsD4sSSDldsfW9ASklmbZnLzKaEUyNPbgrrFR7UvonNYKhlffXOIliW kisDJzAhDhnsGvDhWRnboMeKmtLBjwKpDA4GTcEKOVAOsmM0QUjJTy2MZvZT5Mp4 cfg4ccH7ffrEOH9dlM89Q/AZuf1VukP9bjxjCO/Bctq7fVFeCfhQdRMpTI+q10+z RAqCamaQkJVvYhcTgL0lEiokGN5hTyf60ucVu+5x6GA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=EL3zoz 00hgq/jA9IDSj0wz0Run35vAh3c7QX30rEeTA=; b=rYduLALA4KTWSpZH7KOaJ+ eDWkW40NtD9NkKFOCx1qK8UxlK5MeyPhfoy6joQYOQxUpHod31tAweTuUB7yymlV kAHePzsVOZzyEfEI9ME3SsTZETC5KPnTARyJDFts3maisR+RDvG3cPgFgSWjR7QE HC0Oiv88Ud9E07l7WqfSW1ara8zjWqRGP/ea4gDBtkx+mEZvp3ARQg67mN0HsdPu kjujcce8FzyNulEdYdsXJQi7p3mVQYDrD7ABZxNxaKKWlX/88EuFxpzRRSxcuCCc yOD6LortEfzI2MeUyvg42fsnj3vPiZUOX6itwLXhob0nPLIz475oYXGcWJtXMspQ == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduvddrudehledggeehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucgfrhhlucfvnfffucdljedtmdenucfjughrpeffhf fvuffkfhggtggujgesghdtreertddtvdenucfhrhhomhepofhitghhrggvlhcurfgrqhhu ihgvrhcuoehmihgthhgrvghlsehprghquhhivghrrdighiiiqeenucfkphepudduuddrud dtvddrudektddrudekheenucfrrghrrghmpehmrghilhhfrhhomhepmhhitghhrggvlhes phgrqhhuihgvrhdrgiihiienucevlhhushhtvghrufhiiigvpedt X-ME-Proxy: Received: from paquier.xyz (ee0822lan1.rev.em-net.ne.jp [111.102.180.185]) by mail.messagingengine.com (Postfix) with ESMTPA id 86BBD80064; Tue, 27 Aug 2019 21:24:42 -0400 (EDT) Date: Wed, 28 Aug 2019 10:24:39 +0900 From: Michael Paquier To: Tom Lane Cc: pgsql-committers@lists.postgresql.org Subject: Re: pgsql: Fix 007_sync_rep.pl to notice failures in ALTER SYSTEM SET. Message-ID: <20190828012439.GA1965@paquier.xyz> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="17pEHd4RhPHOinZp" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --17pEHd4RhPHOinZp Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Aug 26, 2019 at 09:03:08PM +0000, Tom Lane wrote: > Fix 007_sync_rep.pl to notice failures in ALTER SYSTEM SET. >=20 > If a test case tried to set an invalid value of synchronous_standby_names, > the test script didn't detect that, which seems like a bad idea. > Noticed while testing a proposed patch that broke some of these > test cases. Just for the note. I think that this needs a closer lookup and I am afraid that there are more issues like this one. For example, in 012_subtransactions.pl, pg_reload_conf() is called with PostgresNode::psql without checking for an error which is a bad idea after switching to synchonous replication. Most of the transactions done in this scrupt should also complain immediately on an error. -- Michael --17pEHd4RhPHOinZp Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAl1l19cACgkQnvQgOdby QH1PMhAAmgboF4sBercOIMyO2Vcoo0vkCRMd3c55MxTtM9mW7Hvuy87G5O+iAvEY S41zFLmUGZnlBBHUz4fzUNC8wHxy1rkyi+y71Y8ee3gpE0UXuqrCuvw6y+gkETfK BxnaRCQdkvx+c9A7fxipiL5kFtwMDbhHavUKtnOG9VHN+MCXiRa8M/Ja+jwDXhfl kSXn+mzIbcQ5cIAqqnTj89u21utQjLuCXtzUUTkrjpZQVI18bcMfzXfnK1NoG/9L VfMlq/vbYHAZ2SYocol8aa0ABsmT9jdGtDtkaqACeMVJ+cMFG0oPz5rs4nVV/7Vf +waMrYNhZF1paRRPaXBlYAXIGNiSWEKlReGraLAwIkO5PlN2RhIMlHTeGjx2KUQi woH2rAgVH5EP5sReW7ZjYXCvjKWLMVquE3hKLvGnr3U1jqCp4nbe3rro1iPqvt5P z1bXxnjn+Pc7JfrPRBt5Sgv5P10Mq+S3mzgOjzLfFILDBDkpLRI/fhu1ANqsjAz+ EbBl8zFyZzDgULekjDiV1cBqGmf8/kczFkNwraSSn9Fwv8K+h/LDEb1STZS+T559 9a0UkvISWoJgxISwkiNXb0iUI6U5Fa0lJqbqDCeVJWFho70yR8KzSmHYz8JGmfkb JBTGHHhTVjyMDrZv/yHkYWP8mgNjTIrT9JNWEgog3Azz+i2i4j4= =rXyD -----END PGP SIGNATURE----- --17pEHd4RhPHOinZp--