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 1oiUKn-0007a4-SP for pgsql-hackers@arkaria.postgresql.org; Wed, 12 Oct 2022 05:31:13 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oiUKm-0004Dl-HM for pgsql-hackers@arkaria.postgresql.org; Wed, 12 Oct 2022 05:31:12 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oiUKm-0004Db-88 for pgsql-hackers@lists.postgresql.org; Wed, 12 Oct 2022 05:31:12 +0000 Received: from wout2-smtp.messagingengine.com ([64.147.123.25]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oiUKj-0002HE-L0 for pgsql-hackers@postgresql.org; Wed, 12 Oct 2022 05:31:11 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id 35128320010B; Wed, 12 Oct 2022 01:31:07 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Wed, 12 Oct 2022 01:31:07 -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=fm3; t=1665552666; x=1665639066; bh=3FZhoIz/Su h2wA3bzHeiRj0FF0ND86cPnOp+rcEb0tU=; b=QIQDHhZPGAKd+92y2GQ30k8sbt uGF7qZ+6eI2US6Lb+bR4N67KG286bDdsHdqu8FwDB+z49AlVlyVmVybmacsPWoYR SWNm7T8cwVivj8rPv7ZmDXfqkc1STct5um1NYWGuzpObbX1rBRcg2zFJFeYGDpN8 t4eCF/YylQ0avjpr0SbGH3AIyqJvnU2I2EZz6TZBx9zwYtkFjekrQiMW8C0W2yE+ +SlY2ld4PJ3KzOme8buHwmmRtYSO7XyafaTOeBSxSWoMTk/eA1HPypGYEuRiqVWX Xyrmff1okkdjom0evFWMQqgjpzVGqlBHmPsI5CXhl64LlM714ogIMFmpTohw== 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= fm3; t=1665552666; x=1665639066; bh=3FZhoIz/Suh2wA3bzHeiRj0FF0ND 86cPnOp+rcEb0tU=; b=gq/Uk9R3cWgIUsaDu5BXasg1nDUJ+jUfVswsCk5s8MjJ R20KwBXIbaAuhziOxPcz90RMQxQqWBqLbCC0J8vUzK5yCJa40umWmNv0aqteFQp8 /qGV3sCZG5M3uV0jth7gd6WHgwLjKmsKSm7IJHg6bQmrJlIjCUf5QEHJofZctH1S rBu4Yf4syvSISzbhj00MLqWS32W0qyTfn13fmhiFM59DgADAAICLbCftdSe5jTDc jx4sC2xMoy9Yf94P8WPM45do8Z4iaM4CVSTgoY87phruTGfi2sn+nNW7FY24699X BH3+QYSf+XZOpNZuhMtzsRTw/A+Ynnoo/s0/hAQIDg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrfeejjedgleekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne gfrhhlucfvnfffucdljedtmdenucfjughrpeffhffvvefukfhfgggtuggjsehgtderredt tddvnecuhfhrohhmpefoihgthhgrvghlucfrrghquhhivghruceomhhitghhrggvlhesph grqhhuihgvrhdrgiihiieqnecuggftrfgrthhtvghrnhepteelieefudffhffhtdetleeg geegfffhkeeuveetiefgudduvedutefggeeivdejnecuvehluhhsthgvrhfuihiivgeptd enucfrrghrrghmpehmrghilhhfrhhomhepmhhitghhrggvlhesphgrqhhuihgvrhdrgiih ii X-ME-Proxy: Feedback-ID: i0fe9450f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 12 Oct 2022 01:31:02 -0400 (EDT) Date: Wed, 12 Oct 2022 14:30:59 +0900 From: Michael Paquier To: Matthias van de Meent Cc: Bharath Rupireddy , Dilip Kumar , Luc Vlaming , Justin Pryzby , PostgreSQL-development , Andres Freund , Paul Guo , Jeff Davis Subject: Re: New Table Access Methods for Multi and Single Inserts Message-ID: References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="xGB1j9qsZxozSFVg" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --xGB1j9qsZxozSFVg Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Mar 07, 2022 at 05:09:23PM +0100, Matthias van de Meent wrote: > That's for the AM-internal flushing; yes. I was thinking about the AM > api for flushing that's used when finalizing the batched insert; i.e. > table_multi_insert_flush. >=20 > Currently it assumes that all buffered tuples will be flushed after > one call (which is correct for heap), but putting those unflushed > tuples all at once back in memory might not be desirable or possible > (for e.g. columnar); so we might need to call table_multi_insert_flush > until there's no more buffered tuples. This thread has been idle for 6 months now, so I have marked it as returned with feedback as of what looks like a lack of activity. I have looked at what's been proposed, and I am not really sure if the direction taken is correct, though there may be a potential gain in consolidating the multi-insert path within the table AM set of callbacks. -- Michael --xGB1j9qsZxozSFVg Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmNGURMACgkQnvQgOdby QH2ZDw/9HIDwlUlBiDMELTYBAoWeCHOMfWuX3HL7dPzYNcEQwZyKF5vZc6O9FODE 6x8S4+yQfRLSC1txkKxTC4zSvtBzES/V31jeJtlFgUaK5IEmd3mS5FuzucY0idhq KP8SfQsQdfu3aYlWMYTHqUya1iZ//hvQd8nkPMzhuiOoiXFvJ2ND2jezK/9ZSFFH OXwWpZpqRU9cPr8yvGwJoZf13qfveimdJnuF41PwWEWH4Lc2Tjcg5QATbvaL5kAp Kf0gFAbkLJWKPOU0HPPqU5cflMsqQEbDGvcSNCTQw4/n/KuUKalKQ2jhWQB6wgx8 uc9tkeW8ZaQ4R0p1b1bXeZ7xHlgYyO69eZAah1MxMFDqYzJ/SEsbnaLymO+jOfhi f/AzZGSzP+VaAIOPRYv8mJwIk3OG1ZGr3DM9hLDJPFhYFIsq/Q18oJDMxqMLWBMU aSzELm7d4Yrv4FaQa2vJMMlDmGGOGG8xHXu4GGz66cuTffkS1GKHiZGSUVoiTgt9 9QzG9KEpsZBtKG/946fvqHsiAaevZTb92s35OBR8KBAxyeCDfQz2O2gikAXpxKGq N/G6ce22el5VegLv6SGb5Q0vfRa4GVe3jSpRuaLKoUO8lUeoskqnFct3myQNDRPZ DVQIg7gwZoPDhZiwryX9vq9Eikm2FlN5HLIWDYGuKCSwmgt6BJQ= =oyEA -----END PGP SIGNATURE----- --xGB1j9qsZxozSFVg--