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 1lIL34-0001LN-K9 for pgsql-general@arkaria.postgresql.org; Sat, 06 Mar 2021 00:44:02 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lIL2X-0002lS-NX for pgsql-general@arkaria.postgresql.org; Sat, 06 Mar 2021 00:43:29 +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 1lIL2W-0002lK-Oy for pgsql-general@lists.postgresql.org; Sat, 06 Mar 2021 00:43:29 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lIL2Q-0003kn-J1 for pgsql-general@postgresql.org; Sat, 06 Mar 2021 00:43:27 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.nyi.internal (Postfix) with ESMTP id 653E35C017E; Fri, 5 Mar 2021 19:43:21 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Fri, 05 Mar 2021 19:43:21 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:subject:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; bh=nErIHETIo6n2kYr8G1TBVJb65IumQxKIQEYcmH5xd8k=; b=wYjLDaLE rfGbDqCa7uZNos/d6dEve1OFP15+rRs/QTDSpU2ASxawZKXo473SelCT51o6wIf9 mafi3hdkKBjBRPikX9b6AB/jb4voz5zoUtJSV0R9/08DcDW5j2gctltHcG01cvWi VZiYCU8mYSYdz7KvhQhvhZ33rG4x5LVx0c2zRVKWVeubi0oKXFOHE49Bdna0IdOd S19C0lfrBqjN9tEgwcBmT7equW6hZXnJCHANPU+TrldvhN0QqFVrepnN3i5xKENR 6+e6ZLTQhfRepfndrw2KpT1g77vlmXZ95DhpLbr5UFiRYCN9S0JKmRo6NQN5tPnT xo4hiB1AgINlMg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledruddtjedgvdefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne goufhushhpvggtthffohhmrghinhculdegledmnecujfgurhepfffhvffukfggtggugfgj fgesthekredttderudenucfhrhhomheptehlvhgrrhhoucfjvghrrhgvrhgruceorghlvh hhvghrrhgvsegrlhhvhhdrnhhoqdhiphdrohhrgheqnecuggftrfgrthhtvghrnhepgeef geevieevudfhjeeiuddtgeekkeegteegtdejvedthefgvefgjeehgedtfeeinecuffhomh grihhnpehgihhthhhusgdrihhopdhpohhsthhgrhdrvghsnecukfhppeduledtrdelhedr udelrdelheenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhroh hmpegrlhhvhhgvrhhrvgesrghlvhhhrdhnohdqihhprdhorhhg X-ME-Proxy: Received: from perhan.alvh.no-ip.org (unknown [190.95.19.95]) by mail.messagingengine.com (Postfix) with ESMTPA id E1AD824005B; Fri, 5 Mar 2021 19:43:20 -0500 (EST) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id 3574B2A14F9; Fri, 5 Mar 2021 21:43:18 -0300 (-03) Date: Fri, 5 Mar 2021 21:43:18 -0300 From: Alvaro Herrera To: Samuel Williams Cc: "David G. Johnston" , pgsql-general Subject: Re: libpq pipelineing Message-ID: <20210306004318.GA2401@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hello Samuel, On 2020-Jun-27, Samuel Williams wrote: > I found some discussion in the past relating to batch processing which > appears to support some kind of pipelining: > > https://2ndquadrant.github.io/postgres/libpq-batch-mode.html I just noticed this old thread of yours. I've been working on getting the work you linked to, polished a little bit and completed for PostgreSQL 14. If you'd like to give it a try, your input would be very useful to me. You can find the patch here (applies on the current master branch): https://postgr.es/m/20210306003559.GA1375@alvherre.pgsql (If you need help building, please ping me on private email). The patched libpq version is compatible with older servers. Thanks -- Álvaro Herrera Valdivia, Chile