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 1x2I2A-005gmL-03 for pgsql-hackers@arkaria.postgresql.org; Fri, 04 Sep 2026 00:43:58 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1x2I28-003L8P-0C for pgsql-hackers@arkaria.postgresql.org; Fri, 04 Sep 2026 00:43:56 +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 1x2I27-003L8F-2T for pgsql-hackers@lists.postgresql.org; Fri, 04 Sep 2026 00:43:55 +0000 Received: from mail-pl1-x62c.google.com ([2607:f8b0:4864:20::62c]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1x2I25-00000002oqG-0RCT for pgsql-hackers@lists.postgresql.org; Fri, 04 Sep 2026 00:43:55 +0000 Received: by mail-pl1-x62c.google.com with SMTP id d9443c01a7336-2ce98cb8165so5088205ad.1 for ; Thu, 03 Sep 2026 17:43:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1788482631; x=1789087431; darn=lists.postgresql.org; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:content-type:from:to:cc :subject:date:message-id:reply-to:content-type; bh=ZjetxAAt0w2ehFQZZpmRf2b7bf9ZOaAivxI4g8YcCiY=; b=ZC6RERZ10BExKFK64ALO/JIVJVWHiadelEW1l2qxW2zUvnGmR9A3JhTehBfyBV884h m5KvVVq8dR+2u5yYMsXqDcCOZu1uRsSCrFGgHJlgHb5L70NhTdyvSRWTmbPLf+8NLRBr +/11VIogKsdOnqa1mF4434/W2jDBW8FFPmHJZyl/bEz8kKgYESuRPfK1QpiAYijcHbA1 bt+gUuWPfF+pmFBok5t/gjogdCu0TJ0YASWvGHrS6zaDo8n1zgpH25Wb6um5hPcaVnnJ dPPi44aeSFRS60t+fAC6XRNHdw9oYM43cUgoO30NmhrIcmaZXeb+aD5bjTJpwr6qAaVo p9Dw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1788482631; x=1789087431; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:content-type:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=ZjetxAAt0w2ehFQZZpmRf2b7bf9ZOaAivxI4g8YcCiY=; b=qqJ005IhxqI9Lkd/DxQscbNcKiUM/pz9q9TjOhXMONoLdgCor8XC59N5xVp6ybXd17 wpimAZzRP7OiP5T+Strjs7d4ztOLCxf5FRky9LiA80dK4OCTBFNmc2RuVaLl+hpIJFOa SH/nDDjlHUzlLSnBSAqmbfbLrwoFn3mOb7zH5vsOPH5zC00DLLj5cfZjCUzJBE1L5xR6 Jt8kW7KKtZpf8CHVazhyCBRmsbZJ7jPIzMrX1KAMSKHQxLmCmmSc990+rm/xfpMBrcex 9BL5elY6RrHKfboiijVk5msjwMKMUsUQ2AYfVQmVZCMRm9QwpK3r8vn+AbQH0PMCgMe+ Pl1w== X-Gm-Message-State: AFuF++mM5dioF1miWT40IhXTlG8HudpTXi6QeXki/2zBcJoShRvJ8QGS 89TEpsMx41ynBWbQZr5KY7wbaCve5E5+gHJBwXzUr2FTGY++wtdmo7s+ X-Gm-Gg: AYBFou1qVDYFDuKHdoyr2msQk0RCCX1g0suYLDTp1iH/W1mCShn01HHAeQBNPA/WD8M yCOsYDzequPzrwhpa/fBYxiYn1M3uisPbd/TdLYlwd+0d1E5EVKJ8RsTpToN8KjnEEfHjS8eVwz wWIR7FdAu8LKf3GEG4j5lYoEC5pQB+1y2ERioXdnqNY+MZD2LibMJGzd2HSMeNWVI2pK/Cuf24T RgVhuhEzbDEiu6dfr3jqLnpVV4ZWuUP2eQb6JJGXB1xAVqTBmShE2DcfCn5xui86gZtevvtTlpR xzTC8D4XLRzT2T5RnMk5HZ1Mj5CjCk5wsDQirurw3xFG0HIb8V0baQMr+5ZX54+Z3Lu7/7HT71t XKNHY5iBncNHqzS1EeiKXChLa+Hr5RVtAlj+89rOGapvUPuGNul9HzQdyEiPqgORbhaD+15C4NL HJ/EIYrDZqpwgHWWNwk/AcPAKLU/QTtSq/DdbEyzDDHxano0coTmn4lFonD806228lVQL1PbPPG UiKq7Sf X-Received: by 2002:a17:90b:4490:b0:38e:42f5:d096 with SMTP id 98e67ed59e1d1-39b279ad968mr1162284a91.0.1788482630484; Thu, 03 Sep 2026 17:43:50 -0700 (PDT) Received: from smtpclient.apple ([185.135.79.161]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-39b08cacbb0sm7828850a91.13.2026.09.03.17.43.47 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 03 Sep 2026 17:43:49 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3864.700.51.1.1\)) Subject: Re: Rename of varatt_external to varatt_external_oid From: Chao Li In-Reply-To: Date: Fri, 4 Sep 2026 08:43:37 +0800 Cc: Postgres hackers , Tom Lane , Andres Freund Content-Transfer-Encoding: quoted-printable Message-Id: <1B63EFC9-93D5-4197-8D12-181D8F55ACA5@gmail.com> References: To: Michael Paquier X-Mailer: Apple Mail (2.3864.700.51.1.1) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk > On Sep 4, 2026, at 07:33, Michael Paquier wrote: >=20 > Hi all, > (Tom and Andres in CC, as they've commented on the original "round 1" > thread) >=20 > In order to add support of 8-byte TOAST values, one item that I have > on my list of items is a set of renames in the varatt.h definitions > for some objects, as of: > - varatt_external -> varatt_external_oid > - VARTAG_ONDISK -> VARTAG_ONDISK_OID > - TOAST_POINTER_SIZE -> TOAST_OID_POINTER_SIZE > - TOAST_MAX_CHUNK_SIZE -> TOAST_OID_MAX_CHUNK_SIZE > - Few macros in varatt.h. > - (I'm aware of the control file bit, left out on purpose as its > tracking is still valid even if we extend to 8 bytes.) >=20 > This is related to the following, larger patch set, but I wanted to > make a last call before proceeding as it is hidden in a much larger > set of patches: > = https://www.postgresql.org/message-id/flat/af19kUjwjhaoUTLn@paquier.xyz >=20 > Tom has commented about this part of the patch here, presented in > 0003: > https://www.postgresql.org/message-id/1891064.1754681536@sss.pgh.pa.us >=20 > This is a more ambitious version of it, with more mechanical renames > to make the difference between the OID and OID8 flavors of the > pointers. >=20 > One point of the renames is to make extension folks aware of the fact > that the new TOAST structures may need handling due to the new 8-byte > values. Still, I also feel guilty to not provide a set of > compatibility definitions, which is of course one option. Note that > I'm planning to do all that early in the release cycle for v20, to get > room for it. >=20 > Rebased on HEAD is the patch I have for staging. Any thoughts, > comments or objections? > -- > Michael > <0001-Rename-varatt_external-to-varatt_external_oid.patch> I tried to review this patch, but =E2=80=9Cgit am=E2=80=9D failed on the = current HEAD (2b3d11aaed8). Would you please rebase? ``` % git am = ~/Downloads/0001-Rename-varatt_external-to-varatt_external_oid.patch Applying: Rename varatt_external to varatt_external_oid error: patch failed: src/backend/access/heap/heaptoast.c:634 error: src/backend/access/heap/heaptoast.c: patch does not apply error: patch failed: contrib/amcheck/verify_heapam.c:1558 error: contrib/amcheck/verify_heapam.c: patch does not apply Patch failed at 0001 Rename varatt_external to varatt_external_oid hint: Use 'git am --show-current-patch=3Ddiff' to see the failed patch hint: When you have resolved this problem, run "git am --continue". hint: If you prefer to skip this patch, run "git am --skip" instead. hint: To restore the original branch and stop patching, run "git am = --abort". hint: Disable this message with "git config set advice.mergeConflict = false" ``` Best regards, -- Chao Li (Evan) HighGo Software Co., Ltd. https://www.highgo.com/