Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nyPLM-0007Yz-0V for pgsql-bugs@arkaria.postgresql.org; Tue, 07 Jun 2022 02:53:20 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nyPLJ-0007St-NV for pgsql-bugs@arkaria.postgresql.org; Tue, 07 Jun 2022 02:53:17 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nyPLJ-0007Sb-Ee for pgsql-bugs@lists.postgresql.org; Tue, 07 Jun 2022 02:53:17 +0000 Received: from out5-smtp.messagingengine.com ([66.111.4.29]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nyPLH-0005RP-3E for pgsql-bugs@lists.postgresql.org; Tue, 07 Jun 2022 02:53:16 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id D442A5C018C; Mon, 6 Jun 2022 22:53:13 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Mon, 06 Jun 2022 22:53:13 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= cc:cc:content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to; s=fm2; t=1654570393; x=1654656793; bh=aZ454mPSkM Na3YkZrD7ekXFnG/JAJoyM8rUPoeBQyAw=; b=YjN5XmvvMZTmR7trA4kiRovim5 w4jvWVYIf+4qQ+WOYX63/SqIrir1YVwKyD95Ora6MWpYub8EPqQKIEYqH+YEaCr5 2KkL4Q0ftZe5qWE0LzXo3xyn7GzFSIlkao+fxvXoJHbReU7AHzbYbIcfUQEjfrkj 9Lis4x7AZ2Y/sK1hMtWK3yjKrkiXHyhkz6muttdhunpPDL5B5njBa4qnIiocuHJk vOGG1T7MczQaI8dxLHE+VT4rUMNCgIVK5ob4hIBhtcy1+kt0/FF+G/1j2UQ5RPlK gg4zYVWExpHSz+5Iuw5Qia9m2l+U6i+3fmNb4w4HG2/dc0PBB5lNgh6crOZg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:date:date:feedback-id :feedback-id:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:sender:subject:subject:to:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; t=1654570393; x=1654656793; bh=aZ454mPSkMNa3YkZrD7ekXFnG/JA JoyM8rUPoeBQyAw=; b=a1BlcqT2lx0GigS5O7nVJ4zV9t6PXRwKVzExUgBdAUiR W6HSZ6+Jqq7mcdqfv4rhnb1SlSQt9/P6Mo1T7n1/5bq2nqNa78AVv/Y5Wys9sORL hmdtozkro+SXo+T8Aiqgz0X6Zcq+nJ+qSSu2YeEJtS1z8pu/X6O3CWTDE/e/QqjZ jmqNyOHHKvw+itYxqJNiHdZlnhEMP5Oa5bHRjwn9QD0p6QxI5Z1gSpcVb3mMuiSs XR52MnJ4ZqVsFGQCRlpGfq28PouzVgRwB9djFgS3IFlh1kcRShzRHKpZpU6fw/VB bjUBVRRNw11mUbMFdlTYiQdW4dZLVHyolIBJDsFJ6w== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedruddtgedgieegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne gfrhhlucfvnfffucdljedtmdenucfjughrpeffhffvvefukfhfgggtuggjsehgtderredt tddvnecuhfhrohhmpefoihgthhgrvghlucfrrghquhhivghruceomhhitghhrggvlhesph grqhhuihgvrhdrgiihiieqnecuggftrfgrthhtvghrnhepteelieefudffhffhtdetleeg geegfffhkeeuveetiefgudduvedutefggeeivdejnecuvehluhhsthgvrhfuihiivgeptd enucfrrghrrghmpehmrghilhhfrhhomhepmhhitghhrggvlhesphgrqhhuihgvrhdrgiih ii X-ME-Proxy: Feedback-ID: i0fe9450f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 6 Jun 2022 22:53:10 -0400 (EDT) Date: Tue, 7 Jun 2022 11:53:08 +0900 From: Michael Paquier To: "David G. Johnston" Cc: Robert Haas , Kyotaro Horiguchi , Christoph Berg , PostgreSQL mailing lists Subject: Re: BUG #17504: psql --single-transaction -vON_ERROR_STOP=1 still commits after client-side error Message-ID: References: <20220603.175603.682874096867945240.horikyota.ntt@gmail.com> <20220606.151124.656806001979080471.horikyota.ntt@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="VFMcbZLKqt1FoTuT" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --VFMcbZLKqt1FoTuT Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Mon, Jun 06, 2022 at 01:05:46PM -0700, David G. Johnston wrote: > We've done worse when dealing with obvious bugs contrary to the > documentation and that prevent unsafe behavior. People relying on the > defined behavior to safely fail when encountering unexpected failure > producing situations that hopefully never happen get the priority over > poorly written code that somehow relies on errors not respecting the single > transaction promise. Yeah, I think that the past behavior was a bit crazy. On a client-side error, psql reports a failure with an error code but would commit any changes that happened before the command that failed with the underlying commit created by --single-transaction, while discarding any future commands. -- Michael --VFMcbZLKqt1FoTuT Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmKevZQACgkQnvQgOdby QH02PhAAmlDli31hGRI1pTtzZ47v4CcmrqQB+WHcNJbMN/gkWEoSKr8zaho1cwbu gtOYq7mvDw7XR/UP5cDv+VEora/yHjnDU+Cirbvymf+VRv/JbfrEW1m3eSK8shGs w96Ad6whsZsAAscN563Ufc7a8z+BgK5IzyggWO1/jJrHYJJvw7MZWGSSOLqphfhs F2XJRhPu4jvGwDxm/QDmKapLaSiFs1G3pdcjZf1teoTV3Ylt9nmXIVY+MCoNQkS+ QqKYe2bbmdNNR6XMuGZlZs9OXjOzYDSSDEUvFL2u+ivGvwBEheyTPgLMcJWFgQe+ QSwxswzRoVbru9CgCYKmenyKdne9xkcOtzuy3gjJSFZEUFhvnXttUmExXH65aoL2 aOolp2jodBVWEUOx+GynqlkEawN/xUa8uTKM2UZ//ZmtoY2OQdu9hNzv99qg55MD nAetQSS74BXmweOrR9pefiV/KpBmNctvJu9A5wXL082psL9KOLu7lIhAzFXMfYwO P3F8WAuJPoICBO61/a1hPsINGFCAgeHUq3woEtOrM0kFG06VibE/kqkARm4SZF98 54zoZkIoIfymI6zJ4h3lUyfCiMWex3vZR4v9O0yLcpgfMx7wOL74owstC4p+8voz MIZ1hiiXRFagTNEZNlSi4HcdVrKI4M7TW8S/UyYvI4apkFQq/aw= =leDv -----END PGP SIGNATURE----- --VFMcbZLKqt1FoTuT--