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.96) (envelope-from ) id 1w7wXZ-0003RH-2X for pgsql-hackers@arkaria.postgresql.org; Wed, 01 Apr 2026 14:27:30 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1w7wXY-000TiR-22 for pgsql-hackers@arkaria.postgresql.org; Wed, 01 Apr 2026 14:27:29 +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.96) (envelope-from ) id 1w7wXX-000TiJ-2C for pgsql-hackers@lists.postgresql.org; Wed, 01 Apr 2026 14:27:28 +0000 Received: from fout-a4-smtp.messagingengine.com ([103.168.172.147]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1w7wXU-000000001it-0qAe for pgsql-hackers@lists.postgresql.org; Wed, 01 Apr 2026 14:27:27 +0000 Received: from phl-compute-02.internal (phl-compute-02.internal [10.202.2.42]) by mailfout.phl.internal (Postfix) with ESMTP id D5D04EC01CB; Wed, 1 Apr 2026 10:27:21 -0400 (EDT) Received: from phl-frontend-03 ([10.202.2.162]) by phl-compute-02.internal (MEProxy); Wed, 01 Apr 2026 10:27:21 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kurilemu.de; h= cc:cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :reply-to:subject:subject:to:to; s=fm3; t=1775053641; x= 1775140041; bh=lp1odRiGhmRIgzYeu9cfh56zrVMxzo2bnJ6UVDAvMg8=; b=B kQQRmMB6XN0ewxOnt2RUCyeyqAZytXhqJ/aHGDgizsKzJFVz6k1Zos9w9ka5jr51 +ctisE5yPmmTbhHYKOLVAba2C9TUVr89NiWTZ3vTLtQHMGDdtWXaexjpVNiarMHi on49DRbkHapYDF+iE2Cptju84Bd5Na0zF2xzuGGrCNXakWUTiAhGLDtk9PRl0Rhw GnQhGrdLb6G63lheciDoyDD1qodmoStus9cIOsEqE4QEZjdFBAZyO9NZrALhosBc 5p8Tp3W4/R7YJDh4WgCFMJPzcU5nMvKbfVRNiYKzfgUIRZM8iRNjt1xMLvuuJmBg RNSgOTOwERuWQMX6OdOHg== 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-sender :x-me-sender:x-sasl-enc; s=fm2; t=1775053641; x=1775140041; bh=l p1odRiGhmRIgzYeu9cfh56zrVMxzo2bnJ6UVDAvMg8=; b=A7HDxuVe1sj/EaFYW C+6wgL1DV33P2TnIn0FhYTVKWj5VA9YL7xzddc4rHbVzxwU7YeQdL6oCN/YKcN+Y WKteks8okSxytMNcKBruvHC5bhOj+n882nAZ3OdJeIX0UA3OanqleUzSCMdDx9uF XO3v308yVaNyRg3aytvWFQQrbWej6YnPo/VlYMmm/fNUZ33QXAIwiWeGysLPhEV0 aZ0d9VT4OLCnYUkrv5cauZDC5RO0tp+PfmtnnEqaz1YE3XZ2MHRU+1o0Br08OdOO +19/uAa3EJrcg1zkQmu51iiHKSyOTplp2f7yq71KFC1Nxwj3fSKhu3LVbJ+UrAcI 5iXVQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefhedrtddtgdeffeeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceurghi lhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurh epfffhvfevuffkgggtugfgjgesmhekreertddtjeenucfhrhhomheplmhlvhgrrhhoucfj vghrrhgvrhgruceorghlvhhhvghrrhgvsehkuhhrihhlvghmuhdruggvqeenucggtffrrg htthgvrhhnpeegudetudejheduveevgeehjeegleevveevvdeutdejtdekuefhheehgeev tdejteenucffohhmrghinhepvghnthgvrhhprhhishgvuggsrdgtohhmnecuvehluhhsth gvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprghlvhhhvghrrhgvsehk uhhrihhlvghmuhdruggvpdhnsggprhgtphhtthhopeehpdhmohguvgepshhmthhpohhuth dprhgtphhtthhopegrnhgurhgvshesrghnrghrrgiivghlrdguvgdprhgtphhtthhopehl ihdrvghvrghnrdgthhgrohesghhmrghilhdrtghomhdprhgtphhtthhopehnrghthhgrnh gusghoshhsrghrthesghhmrghilhdrtghomhdprhgtphhtthhopehpghhsqhhlqdhhrggt khgvrhhssehlihhsthhsrdhpohhsthhgrhgvshhqlhdrohhrghdprhgtphhtthhopeiish holhhtrdhprghrrhgrghhisehpvghrtghonhgrrdgtohhm X-ME-Proxy: Feedback-ID: ie3de48e3:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 1 Apr 2026 10:27:21 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kurilemu.de; s=schmee; t=1775053638; bh=VCpfHH49Qw4VM7KSPWlqdNDeph+R4SNExLNF2T6jZlQ=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=TEwUT2uAuxa2mFvY0M6Qe8xDutXw53ncqb5P7MHxvyIlbRNg8qDnQbwQANHRh9eLX u1rOr2vsyoUQ28ilUkKnmz43JZQGTieyWpgzMEOhQSG/e1Kk3ZehnloXFKJWMKv4a6 BF7KvLYbHef9P3aQnr/U2fDrx1JCK9KwCQozIArHNKagDpnTYibmJnkKxf17dnU9EZ TWYmTvRIiq1eNDVPvJh8IDBEkPhpXaobNL9gYCSC5EJlRBzENIIh/+lSLknzZiHCp/ XF9bBgM0W2da2eIloKtOVV0dPzD8zPQaquutK7jFkn3HwEkQgNfecw2kfKFB6TwrbO cfxaS4gdzqpMA== Received: by schmee.kurilemu.internal (Postfix, from userid 1000) id 539477C; Wed, 01 Apr 2026 16:27:18 +0200 (CEST) Date: Wed, 1 Apr 2026 16:27:18 +0200 From: =?utf-8?Q?=C3=81lvaro?= Herrera To: Chao Li Cc: Andres Freund , Pg Hackers , Zsolt Parragi , Nathan Bossart Subject: Re: table AM option passing Message-ID: <202604011417.bwthhrwmivd4@alvherre.pgsql> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="3myajthupiacptbt" Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <40E570EE-5A60-49D8-B8F7-2F8F2B7C8DFA@gmail.com> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --3myajthupiacptbt Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit On 2026-Apr-01, Chao Li wrote: > 1 - 0001 > For table_tuple_delete(), options is added and changingPart is > removed, but the header comment should be updated to reflect the > change. True, fixed. > 2 - 0002 > For table_tuple_update(), options is added, the header comment should > be updated as well. Done. > 3 - 0002 > Now TABLE_INSERT_SKIP_FSM, TABLE_INSERT_FROZEN, TABLE_INSERT_NO_LOGICAL belong to the same options word as HEAP_INSERT_SPECULATIVE, but they are still defined as: > ``` > #define TABLE_INSERT_SKIP_FSM 0x0002 > #define TABLE_INSERT_FROZEN 0x0004 > #define TABLE_INSERT_NO_LOGICAL 0x0008 > ``` > > Could it make sense to change them to the left-shift form? Yeah, I don't know. I don't like this style, but some people like it, and I don't want to get into an argument about this kind of thing. > 4 - 0002 > In heap_multi_insert(), heap_prepare_insert(), and heap_insert(), > options is defined as uint32, but in RelationGetBufferForTuple() and > raw_heap_insert() it is still defined as int. Would it make sense to > take this opportunity to change all “options" to uint32 for > consistency? Otherwise, if this is left for later, a trivial follow-up > patch just to change int to uint32 may be harder to get processed. Hmm, this is actually a problem in 1bd6f22f43ac. I added a preliminary patch that should fix this. -- Álvaro Herrera PostgreSQL Developer — https://www.EnterpriseDB.com/ "No renuncies a nada. No te aferres a nada." --3myajthupiacptbt Content-Type: text/x-diff; charset=utf-8 Content-Disposition: attachment; filename="v5-0001-Fix-callers-of-heap_insert-and-siblings-to-use-ui.patch"