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 1vNba6-008FCo-3A for pgsql-hackers@arkaria.postgresql.org; Mon, 24 Nov 2025 18:46:34 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vNba5-0034Vs-1p for pgsql-hackers@arkaria.postgresql.org; Mon, 24 Nov 2025 18:46:33 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vNba5-0034VY-0t for pgsql-hackers@lists.postgresql.org; Mon, 24 Nov 2025 18:46:33 +0000 Received: from mail-ej1-x631.google.com ([2a00:1450:4864:20::631]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1vNba3-001FX7-0u for pgsql-hackers@postgresql.org; Mon, 24 Nov 2025 18:46:32 +0000 Received: by mail-ej1-x631.google.com with SMTP id a640c23a62f3a-b7697e8b01aso358235366b.2 for ; Mon, 24 Nov 2025 10:46:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1764009990; x=1764614790; darn=postgresql.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=A+DjkHa0yMkTYrfhsXHdVuZQbklxH8FFCMV1CcY0984=; b=cVCpm039Juhu42cTSzSH8VojKfPtcLiTWFT+3t/77CLlv6BKUE762dTru5Q/NBYKoJ cqLA/O5dxvJ/UOhaG+mUQ0hmyLkNO/aJDmWAlN38eS0KSChfYxxOf4cgk92vE+O169HH 2JEZfl5wlPsTZMYAv4veN/ZQEf7TfDLyrehOiathHJ1JD5r0zgJtcy39dd6icAeFjiOO IwbRTI5QKAqythDNX+NEr/c2hgZoSBsOeRpp/B4V7hgWSmFVzfu5i+ecuhKm3TXTuKrz P3jwtKAezMZV3MycfB5CLlJVSDyiYkvtf5AgMqiiTL3GzMPrVkHym1N+tdHFxzSM1EdK fBpQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1764009990; x=1764614790; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=A+DjkHa0yMkTYrfhsXHdVuZQbklxH8FFCMV1CcY0984=; b=cfwf8DUPWiRykBm4+KcUOWrpXFPbc1e4pLrnOFnxKNBzDNnYjII7csQLRpmD3TUFqP hX7y0Ii38gwSxNxAF/nLpqmX9iNSeEe2EW4oYqIQ5AijeD1IQdWOIDG9dAlYWe92iyWU RfisyZKlCy4mmh5sc8605S65EwtEAA7SNwN/Jro+mPOxaL7dzcF6umz9G7iGV6Eg6LvY fs+sH+W/H1yuxag3zMTrbu/z2KVaE6nqW9kVCKkVbI0PCRVJ/o44HGBVviXixk12Lndu SMIoyr4PUOU5pZpcFJOQGXFsavO33QWQmtKpidpqdDtNW/xEnr7KErkFIeE1O8I4V4g+ XCiQ== X-Forwarded-Encrypted: i=1; AJvYcCWuEFQFL9obsZml5DZNUJViSSkV8SI1rorf/wfJty4YjHNt92FoLdQ1NcggFxp+VWz48RgURXxtDIgs/7kO@postgresql.org X-Gm-Message-State: AOJu0YzHtbB9YzwMnowGg+a9XTLrb/OdObl8i04kfMb7aymyLt6Gcl3l oBmPASnduqd1519aOtUYel3WNZhq4izqAzRfWpu6j0C8Ra0/IdwdBiic X-Gm-Gg: ASbGncuxCew7pD9+SwBWK5iPSyeCavaOMpu+5VR4QoNlV8cD0Chnmyn6rSunuFYv+nr zS7/l8xkF9vwp/yjpIqqtTf3hc15g6HKxeaNlAum8NFlrzDQxGtZSJndi1Dfq3X+MigD6pzusFa I120n5Ff+Xsy5N4JH6gS0uCE+sM85/UfBrHiW0CQOjMWkkOiDSyY8+hWBqKTrf80XaAcCSq8TDE NYnaFdKdzfWFD+pLp9m6Mj5lLrS7Zz7EHkcrTPuDd7RgWWcefmiwoN8Ulk56NLl0U+jb4kDFYCM oyNBXe77gXxFCNtkA5oi0M7Uus8CHRw0vvIa8eLI0KOzjkFBCiJqeyKUtzkDa8WVjyy43aQQKK+ JM1m1Hym1RWDJpphN+azChBpkaRpjqmkkFo96i9jBt9BcI2lqjAdsiwOrzpAoo8RQYOxiXxiI43 PJd+xp2KEXJaI= X-Google-Smtp-Source: AGHT+IHMQfx35F1/LIMiKGH/0t69XAGVcVg0O91tRb/OXePwhNi4tjcy69S7r/IG+ceseNRYd0zXgg== X-Received: by 2002:a17:907:c1a:b0:b73:9937:e96b with SMTP id a640c23a62f3a-b7671891d69mr1424438766b.52.1764009989454; Mon, 24 Nov 2025 10:46:29 -0800 (PST) Received: from [192.168.2.32] ([165.225.27.7]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-b7654cdd5ebsm1379088466b.14.2025.11.24.10.46.28 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 24 Nov 2025 10:46:28 -0800 (PST) Message-ID: <646aa41b-9810-442e-9a5a-69a5604190d4@gmail.com> Date: Mon, 24 Nov 2025 19:46:27 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: get rid of Pointer type, mostly To: Tom Lane , Robert Haas Cc: Peter Eisentraut , pgsql-hackers 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> Content-Language: en-US From: David Geier In-Reply-To: <970261.1764008763@sss.pgh.pa.us> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk I'm in big favor of this change. Such types just cover up what's really going on and make reading the code more difficult than needed, especially for people new to the code base. On 24.11.2025 19:26, Tom Lane wrote: > Robert Haas writes: > I can follow the argument that using the native type "void *" is > better, since every C programmer must know that already. But you > cannot argue for this patch on that ground unless Pointer goes away > entirely. I don't understand leaving it in place for GIN. It's > not like GIN indexes are some hoary backwater that nobody pays > attention to. +1 The GIN code makes use of pointer but src/backend/access/gin only has 29 occurrences. If you like I can help out fixing up the GIN code and share a page here. Let me know. -- David Geier