Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qatKX-00AcxG-3m for pgsql-hackers@arkaria.postgresql.org; Tue, 29 Aug 2023 07:40:05 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1qatKV-004aeq-Rl for pgsql-hackers@arkaria.postgresql.org; Tue, 29 Aug 2023 07:40:03 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qatKU-004aeg-Hy for pgsql-hackers@lists.postgresql.org; Tue, 29 Aug 2023 07:40:03 +0000 Received: from out4-smtp.messagingengine.com ([66.111.4.28]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qatKQ-001YvR-Sn for pgsql-hackers@lists.postgresql.org; Tue, 29 Aug 2023 07:40:01 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id D755C5C00DA; Tue, 29 Aug 2023 03:39:57 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Tue, 29 Aug 2023 03:39:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= cc:cc:content-type: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=fm1; t=1693294797; x=1693381197; bh=oj 4m3LqHkGvqYkPE8BXy73rttjRmOxEYSUG8KL6YBhQ=; b=bUobRdUltp3Clkg26n qyw+K3iqrVYWWcDv+Y6Pl41mZbsna7Sba+Pyz3Mn7ezKsphtKQMF6h5s0hvNNVrA Lf0FVtkNy6QqWZWL90sRmJcmFZasisltQKDUBEZoMAWI9gaSRpb9wecj0dySebNx g+cqV049kYtxwVJVOm/N4IMPEdXpvqVuidEjNyAXHVa463MeL/xce5etVYv3dG+h AigcstOJtxjs5q+EbUIC4CzSAv3jGQUugK/FpYMDclb2lg8JvVJcjYqZueFeGYF5 3FPIMWPxD8TcRgpnh/DHVyzd7XhIyIovHTHIhlc9qpakbZY+oCcUG+EGFHyuXnf3 mxcg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type: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=fm1; t=1693294797; x=1693381197; bh=oj4m3LqHkGvqY kPE8BXy73rttjRmOxEYSUG8KL6YBhQ=; b=s5Qbp80J5Sc/LFwSqOX9f98DPJdkZ tazwqFI/xwKRsikBatOnrNob3N3kbEDWcukQ1nydxpjfdUlodGDtkGmXhMp90+5u y3ZE12FDk7ikuqeFyc0VlCZSDmGzvWr+VFT0at3sFm6qx28UEZaAohzDfv1FQDo7 m2lawYorsgjmhBCXM6G/zLOVUnq6FBC8hzW8wbf3VfXlAbEZCTiKjghIEgJp/lgS NwgFfK9T9nFhRc5J47UVg9J5yWsfM29L4hiUrnvplY02BjeT4J/yTaDOpQRshLGL IDl3LOHU9ZjyEKmg/Y0qwM0LoE+l73A6dhjGVCJTQgiPoOMCleczPqP1Q== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedviedrudefhedguddvudcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enfghrlhcuvffnffculdejtddmnecujfgurhepfffhvfevuffkfhggtggujgesghdtreer tddtvdenucfhrhhomhepofhitghhrggvlhcurfgrqhhuihgvrhcuoehmihgthhgrvghlse hprghquhhivghrrdighiiiqeenucggtffrrghtthgvrhhnpeetleeifedufffhhfdtteel geeggeffhfekueevteeigfduudevudetgfegiedvjeenucevlhhushhtvghrufhiiigvpe dtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehmihgthhgrvghlsehprghquhhivghrrdig hiii X-ME-Proxy: Feedback-ID: i0fe9450f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 29 Aug 2023 03:39:56 -0400 (EDT) Date: Tue, 29 Aug 2023 16:39:51 +0900 From: Michael Paquier To: Tatsuo Ishii Cc: pavel.stehule@gmail.com, aleksander@timescale.com, pgsql-hackers@lists.postgresql.org Subject: Re: Wrong usage of pqMsg_Close message code? Message-ID: References: <20230829.061200.192005411012654565.t-ishii@sranhm.sra.co.jp> <20230829.100424.623781851282219189.t-ishii@sranhm.sra.co.jp> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="e9l222KDFZWXBInp" Content-Disposition: inline In-Reply-To: <20230829.100424.623781851282219189.t-ishii@sranhm.sra.co.jp> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --e9l222KDFZWXBInp Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Aug 29, 2023 at 10:04:24AM +0900, Tatsuo Ishii wrote: >> Yeah, both of you are right here. Anyway, it seems to me that there >> is a bit more going on in protocol.h. I have noticed two more things >> that are incorrect: >> - HandleParallelMessage is missing a message for 'P', but I think that >> we should have a code for it as well as part of the parallel query >> protocol. >=20 > I did not know this. Why is this not explained in the frontend/backend > protocol document? Hmm. Thinking more about it, I am actually not sure that we need to do that in this case, so perhaps things are OK as they stand for this one. >> - PqMsg_Terminate can be sent by the frontend *and* the backend, see >> fe-connect.c and parallel.c. However, protocol.h documents it as a >> frontend-only code. >=20 > I do not blame protocol.h because our frontend/backend protocol > document also stats that it's a frontend only message. Someone who > started to use 'X' in backend should have added that in the > documentation. Actually, this may be OK as well as it stands. One can also say that the parallel processing is out of this scope, being used only internally. I cannot keep wondering whether we should put more efforts in documenting the parallel worker/leader protocol. That's internal to the backend and out of the scope of this thread, still.. -- Michael --e9l222KDFZWXBInp Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmTtoMcACgkQnvQgOdby QH1Jhw/8DMbZRubdz1lkBlnwer0W3WCWm+3hkCudOZiLQxl1yTlJvC1LkQx7zG0z A1MoEQLCG2CLwSzgZl2zNGLM3I4E24ineZQGW9Hn0GMxUwluzkvuniu9bllm/X/f 98ODzYGeKPXr3F4lsMco9m3PlnG/UbHC4O5ZX9PPqLMFqNUlwCVAZY1E9AyQ9gGZ 3JYNwKa1+dRHelOG0zECJl4+LP7q5sqlzgxvwk+mFyzQvUgkEnT7Scd9gmnTosuQ 3HS09SP1y7kuYejFA+E5CAFXyGhh7umLuWqfMFuHhvhC95StyNx1vcK4Ht/cJxiQ SR0Y346N0XLYFA8k7NygfWTuPOcPgD9Slt05Ff1ffKdukxTM0wGgntHgmtAM0ISa w3/yVfUJGhObWHUIjitJRmBs50XAYcqloqCahmsYW/dsqCsrHpq4W73SYjN5jbac TVgWbB9DogvkRRvkfSUr5VnYEWQFRh97rF1mWWx5Ue4ITkLDeLqc8gYa4GnS0GRQ UsB8T8jHSzqSkL585c/jukh5bqbWbWtj7gX29XYWyGQioRlSP3VH13rOzxXLeAYR XeoEEFlFFh4jdztvh+JtRAxYXDX+TEqy6o5kyF+453+Lwl8GwMV50Q0/ae89KRN3 XTmdibVS3R4FRhMnEXOLivPXQJS8MQFImNMiqAAZg7KabJTvr+U= =r6tl -----END PGP SIGNATURE----- --e9l222KDFZWXBInp--