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.98.2) (envelope-from ) id 1xIkxH-00000003sHj-1BAU for pgsql-committers@arkaria.postgresql.org; Mon, 19 Oct 2026 10:50:59 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.98.2) (envelope-from ) id 1xIkxG-00000006bzC-1EKJ for pgsql-committers@arkaria.postgresql.org; Mon, 19 Oct 2026 10:50:58 +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.98.2) (envelope-from ) id 1xIktm-00000006ZbA-1xTF for pgsql-committers@lists.postgresql.org; Mon, 19 Oct 2026 10:47:23 +0000 Received: from fhigh-b5-smtp.messagingengine.com ([202.12.124.156]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1xIktj-00000002xHV-19BN for pgsql-committers@lists.postgresql.org; Mon, 19 Oct 2026 10:47:22 +0000 Received: from phl-compute-10.internal (phl-compute-10.internal [10.202.2.50]) by mailfhigh.stl.internal (Postfix) with ESMTP id 102547A00CD for ; Mon, 19 Oct 2026 06:47:17 -0400 (EDT) Received: from phl-frontend-03 ([10.202.2.162]) by phl-compute-10.internal (MEProxy); Mon, 19 Oct 2026 06:47:17 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=eisentraut.org; h=cc:cc:content-transfer-encoding:content-type:content-type :date:date:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:subject:subject:to:to; s=fm1; t=1792406836; x=1792493236; bh=TsUtTlfsRvytbi14EYjhU9FMwGErhEAM bY+2EjZaXt4=; b=c6Z3wBlilp3800DHboLMLTce6PL0IC5ecY1LcW8IKXHHC5Jj LD7bH9dXAKLuS5+jBrXkoE2jQZDGXteCvSJbrQSjqwCy+gZ228yIYYU/um+R7vIg F0Z20bwDnAUWfksnr1wD4TTjpKi36CfZh5oEFGbiTIpuRkAc0G/R0Zhi9xgoP4P8 NXONo/gaP6HS0ACdk3Ilg1Y3IyMz3P1REA+Sb9OEtlwq69sagORgOITx64AJt4Nu lf76aNMbBvykHAceFAipNBBuW39xGkbSvComDuEs5Qr4fzZhbGijlQwrhbKNh9vc 1zjz42L5ChffX8T9NV88Eaq1OIrL9z6+9hd3NQ== 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 :references:reply-to:subject:subject:to:to:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t=1792406836; x= 1792493236; bh=TsUtTlfsRvytbi14EYjhU9FMwGErhEAMbY+2EjZaXt4=; b=A HGpl635bUEGiW/hbIag/jYsxWIj5Ra3egvVJMUM3JPRblF3VVi8CfX1CpQKCbU1y kC5l1zURArxkBrx9d6tvFBpQjRr0NmNundDq6Txi/gDnpreEz6icFkGGrh8WEbF/ 7eolG0kKRqAyFjVk4mTj+pnJNrMqpV2RmSlxYWlKoEFufjMpW67W4cQGo6nmFnnI ZJ5pWuyfpVwE1+7AnLNioIEaxWIGIJHkkOIt5EhheTATLLyFeI1x3Pxyp/afL0nj N8J5kGgB/SXYRsnPAN6m9bDKtL2vrPEboplYJeooAcxRO2tLyqp7t5aEBJmliMlF RaU8N8CWyu4r0A5QZ7tIg== X-DKIM2-Info: draft=ietf-dkim-dkim2-spec-06; repo=github.com/dkim2wg/interop; date=2026-10-08; sw=lmtpprox; action=sign d=eisentraut.org a=rsa-sha256; DKIM2-Signature: i=1; m=1; t=1792406836; d=eisentraut.org; mf=PHBldGVyQGVpc2VudHJhdXQub3JnPg==; rt=PHBnc3FsLWNvbW1pdHRlcnNAbGlzdHMucG9zdGdyZXNxbC5vcmc+; s=fm1:rsa-sha256:DcD4f22JtFnNAmMaZhRhNVaSIYXwxbzCZM0DN5pjgG3gfFO 00YTOuMOQJkPv5Zbs4DpeOM9cPh8B7fGXzO21l+/jtQYSNEptdk1HawCPYdCR6Lc zVJ0b6w4fkdDFPkH3AJdWPfsHQ4gKdYMVtA0xFCrNL1hbRnx05s2OuBmMgwEqYk4 j+ww0MbY18ofI4OwCZp5KLkMREhGBt63R+/VX4ZGAEuzXtEBWOazo5OPhreSeo5D A53LVlJiRcZTFyVND19Y9AGVEkEZMe2/kJ86rDhyvBGwUpztNgYcbwPfRsbNE3fC WNqVL3yfIWP0rvNIHk7udPVzm6nPaew6/XiTsFA==; X-DKIM2-Info: draft=ietf-dkim-dkim2-spec-06; repo=github.com/dkim2wg/interop; date=2026-10-08; sw=lmtpprox; action=mi-m=1; hc=14; hn=cc,content-language,content-transfer-encoding,content-type, date,feedback-id,from,in-reply-to,message-id,mime-version, references,subject,to,user-agent; Message-Instance: m=1; h=sha256:/UywFyiYmxlX23ua2lXgznLqJIudq/ezsoN5TZtsXx4=:4OMyj4GjMs/mC4I/h/GVgbXC98srdmeMOMohp017e5Y=; X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: dmFkZTFQIFKRMUJkqm8OSCeKB7xz3biLIZuTvfdp/uso2MVxyokiemFEeS8VeY8wsZP7dB 0b5AUub9ELGGrOyEV1FPmi4nJYj7jbqYJXEdrRcGH1RvD49Up4KUwKVvhupq/GJr6OjxHi Y+lS4x1FUZHpzE8rhaibA9955C+cktPw3NxUxFI2xPabXjihJsBn22HhAgRUX2uDCI5flp 0Ac1DSjlcq0Ybq6niQED9lSOrJUQCMQ5a3p6IyktsdSE1FJ6a5G3j/IMBKZlyLiDa2itif ZbgQU72YEcsK7bemCs7ZWxYkzhJjva7l/HGb7Se3tUoVZj0kkILLhxbk4QT9hoMJM1UqB3 Al+vXoqMELwCBtDW3kVDuzqlGYWnn/X3kg0HMqfT6nUUnS2aTVycZ/YjjJjqFZxBnO7N7h CndwXLrZMncfXh+6jL5YlrUGiW3Pi4HTlreq7C7YLTj9KnV+O1PdJAfTr4frv6/UCxs5fL n+473frJedU7gFQu1BuRfKUQXMGxpqmmqXAl9iuCKiiZpphV52x9p64wlFSQppY+EmmbEb W9BMG0GtCHzBoVxolh5ABi7LHTUVzxxjTxlv73+Qw+qr98STp/rPnFbMmqfv9G9dz0XnRv AlpXchPwp1D3Tv1eaHGVaf7ecyLEUyokcx3mUgWB7B4FjAHbIdIdKO5BN0sA X-ME-Proxy: Feedback-ID: ie0a040ee:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 19 Oct 2026 06:47:15 -0400 (EDT) Message-ID: Date: Mon, 19 Oct 2026 12:47:14 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: pgsql: Optimize tuple deformation To: David Rowley Cc: pgsql-committers@lists.postgresql.org References: <10cee1a3-3e27-4a27-83aa-acecb757640e@eisentraut.org> Content-Language: en-US From: Peter Eisentraut In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 08.10.26 22:35, David Rowley wrote: > I'd like to get time to put in more effort into figuring out what's > going on with the gcc as I wondered how many other places we're > getting inefficient code because of this. More research may discover > that we really shouldn't use ints to index arrays, for example. > > It is meant to be 32-bits on 32-bit platforms. Why is uintptr_t better > than size_t for indexing an array? Or rather, what's wrong with > size_t? I had assumed you highlighted this because of some fields > being int and some being size_t, but if you're happier with uintptr_t, > then I may have misunderstood. I'm fine with leaving it as is for now. I'm going around fixing signed vs. unsigned integer mismatches, and this is being flagged because size_t is unsigned and attribute numbers are in general signed, and could at least in some cases actually be negative. But this is only one of many problems, so I can silence this in my local work for now. (So the suggestion to use uintptr_t was also wrong; it should have been intptr_t, or possibly ssize_t, but given your explanation, I'm not worried about this right now; I would rather see you find a proper solution.)