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 1rPjuW-00DnW9-Nr for pgsql-hackers@arkaria.postgresql.org; Tue, 16 Jan 2024 13:55:25 +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 1rPjuU-004Aep-QR for pgsql-hackers@arkaria.postgresql.org; Tue, 16 Jan 2024 13:55:22 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rPjuT-004Aeh-8P for pgsql-hackers@lists.postgresql.org; Tue, 16 Jan 2024 13:55:22 +0000 Received: from out4-smtp.messagingengine.com ([66.111.4.28]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rPjuP-0027oo-2B for pgsql-hackers@postgresql.org; Tue, 16 Jan 2024 13:55:20 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 39F485C0191; Tue, 16 Jan 2024 08:55:14 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Tue, 16 Jan 2024 08:55:14 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=1705413314; x= 1705499714; bh=yw3Ky/GiVTcG/JXz3onvyy/JafObRAgT5kuiMbEsGnM=; b=n E8O1apYQNUhqV+7Rd5kh3oOv9KCeKeKWBlAk5yB7U6/4POxU8rFN4+zuULS6e32S m04xbM+KT2sJg9t/qnR0n2M7U3iPNvwzGswEmD2Vzaqaop3OYRGAzQvMirmcrzmi ZBe1uBfRq+99H2KaXi1pK0ioJxcn5Zam+DQkWNMUwiXRPh34kC6GnmRw71+81h4t ai61LUU+ke9QyPzgMGkIlM+2UZYZfifKt9T0N21Nmh02U6zVKL3/BDGeVlxyt2ZP 2AWUUqzO0L9VMkK6cJvZeeeT7brdyVmnNSwcty7CZu6TJDG0D4vLi4VlZmykFthZ 8ptFkQnV0OrrNHm6YrRAA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrvdejfedgheekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvfevuffkgggtugfgjgesthekredttddtjeenucfhrhhomheptehlvhgr rhhoucfjvghrrhgvrhgruceorghlvhhhvghrrhgvsegrlhhvhhdrnhhoqdhiphdrohhrgh eqnecuggftrfgrthhtvghrnhepvdektdffudfftdffffehfffhjeejhffgieeuueekjeek fffgudffhfduffffueevnecuffhomhgrihhnpegvnhhtvghrphhrihhsvggusgdrtghomh enucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrlhhv hhgvrhhrvgesrghlvhhhrdhnohdqihhprdhorhhg X-ME-Proxy: Feedback-ID: ia2694551:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 16 Jan 2024 08:55:13 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alvh.no-ip.org; s=schmee; t=1705413312; bh=8+tUdtgPPqIGtesnJ+KXosjwu0RJZJfosHG9iTgx0R8=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=A39aXspTP2RLkIBFU8tHHOz1cpdLRWjnaTbwolM+pSJ4HO6x5llQtmz/MZuI5I//E OSCBPnhr4u5m74DOwTBkyqNOIqZYwCrryyEC7sq/lK/+XdlcBzSnNjsZ8TFeLv9t0a l6qexMvfE6LKYN60Rlo0RTcrhT2nQyBMA90Y+wfV5gIA1tA0JSopiUmvBa2HeOgKHq DYx2WUYHowCvSXm7kdOD3IOt+fCbn42yZIA0GnK3Ag0iQX95ILf+HEfqc17FIXIsSy dzXZB9BTWrrIuQzLv7VOSwEE7/u/NRS6CTV5Kj38nQ5h0fkjK6+zKdkxBJ7WpOw4qw QROIaG/yfQUcw== Received: by schmee.alvh.no-ip.org (Postfix, from userid 1000) id 14E629D; Tue, 16 Jan 2024 14:55:12 +0100 (CET) Date: Tue, 16 Jan 2024 14:55:12 +0100 From: Alvaro Herrera To: Michael Paquier Cc: Jelte Fennema-Nio , Anthonin Bonnefoy , Anton Kirilov , Robert Haas , pgsql-hackers@postgresql.org Subject: Re: Add PQsendSyncMessage() to libpq Message-ID: <202401161355.6veemvbijpnx@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2024-Jan-16, Michael Paquier wrote: > I've applied the patch with all these modifications to move on with > the subject. Thanks! > On Mon, Jan 15, 2024 at 10:49:56AM +0100, Alvaro Herrera wrote: > > Looking again at the largish comment that's now atop > > pqPipelineSyncInternal(), I think most of it should be removed -- these > > things should be explained in the SGML docs, and I think they are, in > > the "Using Pipeline Mode" section. We can just have the lines this > > patch is adding. > > Hmm. The first two sentences about being able to submit more commands > to the pipeline are documented in the subsection "Issuing Queries". > The third sentence is implied in the second paragraph of this > subsection. The 4th paragraph of the comment where sync commands > cannot be issued until all the results from the pipeline have been > consumed is mentioned in the first paragraph in "Using Pipeline Mode". > So you are right that this could be entirely removed. (I'm pretty sure that the history of this comment is that Craig Ringer wrote it for his prototype patch, and then I took the various parts and struggled to add them as SGML docs as it made logical sense. So if there's anything in the comment that's important and not covered by the docs, that would be a docs bug.) I agree with your findings. > How about the attached to remove all that, then? Looks good, thank you. -- Álvaro Herrera PostgreSQL Developer — https://www.EnterpriseDB.com/ "Tiene valor aquel que admite que es un cobarde" (Fernandel)