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 1vSYsT-000koF-21 for pgsql-hackers@arkaria.postgresql.org; Mon, 08 Dec 2025 10:54:01 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vSYsS-00GPyR-0o for pgsql-hackers@arkaria.postgresql.org; Mon, 08 Dec 2025 10:54:00 +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 1vSYsR-00GPyJ-31 for pgsql-hackers@lists.postgresql.org; Mon, 08 Dec 2025 10:54:00 +0000 Received: from mail-pl1-x62b.google.com ([2607:f8b0:4864:20::62b]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1vSYsQ-003pcm-0o for pgsql-hackers@postgresql.org; Mon, 08 Dec 2025 10:53:59 +0000 Received: by mail-pl1-x62b.google.com with SMTP id d9443c01a7336-2984dfae043so43576185ad.0 for ; Mon, 08 Dec 2025 02:53:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1765191235; x=1765796035; darn=postgresql.org; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=sFy7/W39MLVuyPY5qXx7nZ/XzwqGFtitBJj8Q01Z9Hk=; b=HF5Bh0BOUMq4PpOOPALPqxj+8bUw3Gqsb/P8FiSnI/01/0d6dkjL+jWgqDvn584yLV Qyr5YDohgZTCmH3cbohYQayECRLrHNi0YZw2QV6aHghEPUwFXua3YQfqGVQug5F5cCWx uGDTBKbZilWDj2iFb69Boa6cC+lBhT/rE+HQBfxVN95jj1dEZpt77OMszgEfc8hgj3Q+ jbRWx2VaGCbOv2RadaqAqsEbdsug9GjcUqnkwKsuzY/BHI5DyZmRShzaK2SheC3imFcf v3Q9cmYwq10HzBFy/Y62RP6UWK7stxEOh1TPC94gfA77JA3bdAj8owGOK6n2goaZdK8e QUKw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1765191235; x=1765796035; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-gg:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=sFy7/W39MLVuyPY5qXx7nZ/XzwqGFtitBJj8Q01Z9Hk=; b=QHerRZA1mq1lAe35l1mlpNs/z+HM+LOKfgotgk70n0lb4kgiVYdW2GBWcp1f2HqhSm kuvJuFTPcCUQGJCaMJ7A3DEihMp3UnwTQPS4mHMUukaM5jlTzRnYBM4SjtyFeYAItPxP i13ipt5JWCBbn+oPjf2ZayOhtw9Ye3bexltNdbtxW/JOxne8bK9mOuGLdfxkanIkZInz fFstOLEF0WTOJsowN/smZh4YAXVPbR1kGASLrHREbEc4bwEz6RLl3+P4xXnkPkwk+DmB On2eMBSfLK8BMwmeQ4mRixE0RE+yO67T2zQ29uCu1vFtoZDmLsUqzDhLtzfJwxgdbGg0 rlOA== X-Forwarded-Encrypted: i=1; AJvYcCXu6BBmhDKBsSV6bSbah2yXn5YhUxhp5HsWprF3bZlSmT2BY/PWdXf5vZd9dw9czqjXRIQGswCsGjX/rcAQ@postgresql.org X-Gm-Message-State: AOJu0YyArVfbXPALL2/I6GDPV11zFiZog3kGF4GP6OgkB/YIgk8fMAS1 4QKbh72VVSABwEN4uBwuTAj+Nz6c0ry8tvsoKJ3JVJ+fdiQ0aqG+Szum X-Gm-Gg: ASbGncvyHJRcx1rk3Eo51Q6HWVZptfYzDruvVESTMd2p7Dh4qndyWT/00dEayi73Gei tRPLhPpDpAB6ZbG2R1abWLw83tzMLDsA7WnKnBrjwulqEa8B9kopwDEuxwNVXPTR+KjtSmjLumB ll+3sMmEB9jGur/ib4k4fyYV/H5A9GhrMP1iMrqHEpdvDBmyYSI6KP/fvEPFP3a799UYq61oqAx jLeMbTeVcZLTp+rR4VhEkm6QlTJ5oP3D/kJE6kuP8aOjhO3ONN20CT3QB8ezkzuzoRwr66SXo94 EHKXj4Y5pAw2K85FUNkn1IhjK2ISJBxpi+IPhYysEH3KXRwUeLGQ0I9Sh27tFGqq/McGIq4pfM4 +8S1OxXf3laspBeHcHGUFRr0vX1OFq1Z5eJKUOV3/mhixVzBjKN5GOJDXaejvs44jS3T5iGdpDh i/hL8DCYZDqqOxXDjO1B0= X-Google-Smtp-Source: AGHT+IGFv3iqc+NSbZAD1G7jfm46H+pi+7Tba3IkdMT0cmnlFEeOmKg/LpSZQoxXisIkz5ZzI1kIfg== X-Received: by 2002:a17:903:986:b0:295:105:c87d with SMTP id d9443c01a7336-29df5ca8490mr55814615ad.32.1765191235359; Mon, 08 Dec 2025 02:53:55 -0800 (PST) Received: from smtpclient.apple ([45.32.121.103]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-29dae49c46csm125107905ad.18.2025.12.08.02.53.52 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 08 Dec 2025 02:53:54 -0800 (PST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3826.700.81\)) Subject: Re: get rid of Pointer type, mostly From: Chao Li In-Reply-To: <2b929da1-dbb5-476f-a878-899b1e9e80f2@gmail.com> Date: Mon, 8 Dec 2025 18:53:15 +0800 Cc: Robert Haas , Tom Lane , Peter Eisentraut , pgsql-hackers Content-Transfer-Encoding: quoted-printable Message-Id: <8B037F29-163E-4446-BA94-7553C9ECA0F1@gmail.com> References: <4154950a-47ae-4223-bd01-1235cc50e933@eisentraut.org> <955002.1764000569@sss.pgh.pa.us> <957744.1764002037@sss.pgh.pa.us> <970261.1764008763@sss.pgh.pa.us> <987824.1764013105@sss.pgh.pa.us> <7c7e1e59-284b-49f6-a496-17dd4170f979@gmail.com> <2b929da1-dbb5-476f-a878-899b1e9e80f2@gmail.com> To: David Geier X-Mailer: Apple Mail (2.3826.700.81) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk > On Dec 8, 2025, at 18:25, David Geier wrote: >=20 > Hi Peter, >> I went with your proposal of GinExtraPointer. See attached patch. = It's >> based on the series of patches from Peter's initial mail. I've = included >> the removal of the Pointer typedef in the same patch. >=20 > It seems to me that we reached agreement. Are you planning to still > apply these patches? >=20 Basically I am not against this patch, as = 756a43689324b473ee07549a6eb7a53a203df5ad has done similar changes. What I want to understand is that why do we delete Pointer and add = GinExtraPointer? ``` -/* - * Pointer - * Variable holding address of any memory resident object. - * (obsolescent; use void * or char *) - */ -typedef void *Pointer; ``` And ``` +typedef void *GinExtraPointer; ``` They both are underlying =E2=80=9Cvoid *=E2=80=9D. Are we expecting to = improve code readability? More specific maybe? Best regards, -- Chao Li (Evan) HighGo Software Co., Ltd. https://www.highgo.com/