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 1w169z-002Ydp-2b for pgsql-hackers@arkaria.postgresql.org; Fri, 13 Mar 2026 17:18:51 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1w169y-005RFN-0Q for pgsql-hackers@arkaria.postgresql.org; Fri, 13 Mar 2026 17:18:50 +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 1w169x-005RFF-2l for pgsql-hackers@lists.postgresql.org; Fri, 13 Mar 2026 17:18:50 +0000 Received: from mail-ot1-x32e.google.com ([2607:f8b0:4864:20::32e]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1w169v-000000000D8-3Zct for pgsql-hackers@postgresql.org; Fri, 13 Mar 2026 17:18:50 +0000 Received: by mail-ot1-x32e.google.com with SMTP id 46e09a7af769-7d4c12ff3d5so2145897a34.2 for ; Fri, 13 Mar 2026 10:18:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1773422325; cv=none; d=google.com; s=arc-20240605; b=ZM6LlCdk64SGuaGTcQwptZLf6GtwvJmKasCNbVqG+ayyzPF0uWW5sLvdGFSpZiYBOU wN+UGuK8ZQHj5sWoV4DetmUJE5xJeRRAla1lUTl8oJHH+j8/OV3dO9nT8M0iGv3EabOC KFNDvZ9M3vjCO8iBhtyagGBBj233VjkGof9EYm2mxTJOai2j38+iheTL5xf6p6EU1ICK WwemK/nmRQxvORP8W2mFLBr41yC+jaEqPYsTMyAJpHhrXCeQap9emxIuHhd0rUXjTNIt 1F/wQMzFYKbbJMSqsEMGAh+dcSn+pdRCysfJ3UV1qya9pJsewteaZXN9LCuSjq6VPtT7 QT2Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:dkim-signature; bh=POcPR3OaGU1ZBJvBgFpt13Ckt8TR2j03RzIfGVs6m8g=; fh=RnZQSjQyqm0N+eeBbbQ+bEhZ2Z9UdugxZnvWeEaN9Qg=; b=dW4Z2Svw+h1ZktNUKEP5niNI6pAmwf+ue3eUgdyt139FAaVT7w+r9+ErybyMSFCvTW 0pUR9GfajGVHINn3SLjpFco9UsyYRQzQhZ4X7qI5Y8XLR/9X1MR2qcjuAM03hULPW1c8 wbWiqi0lw8+N2cNrFD14dGAjy2vLdr25WAi33wYRJ+BMxP8s7obb8u7sH/9wuYqSOa2s yRMFzY5VL9lqeQHEH8ezX74hvtxtOOWYwoI9guQfj+8pZwccjrR9gh3Vy8k+Jd9p1Ljx 1Wnrr1qRO0mYaLg1j6I59cJ2mPbvDvDyy2g07ibgT4k41BUcBxt9WUqTe0uEL6Kna1YU 9Tzg==; darn=postgresql.org ARC-Authentication-Results: i=1; mx.google.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1773422325; x=1774027125; darn=postgresql.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=POcPR3OaGU1ZBJvBgFpt13Ckt8TR2j03RzIfGVs6m8g=; b=ct+gS21TNnTOx72yJPV2UdP9lU+I/MufJ0HSxB2ujYA2XwZnP4rdViCFsMYKfZ7o8u i2lV939WTMH0xJ8fEFGoWyKnODLBQ6l3OsMXsr35JvGX6QukBt94oUq9RPRvHmGLAIph oyvGm6/KEorfKCCa9cyq3GHe3aMd4tlfYs8SUQy9T+LUpz0IRjR/zrWq2/CU/IakKQy2 1LLtZ9xCPBqbPEJwYHKo1QJ0Waskb5723Y23tcAY6mi+YcIFkty2+7hWkcmGJAhTgQ0g dc5Pkn7KMdX0lkhvGyrAAGv3p0tTNzOAqROysrYuf77FJxARHAVaxWKLSA1v/91deeC3 96jg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1773422325; x=1774027125; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=POcPR3OaGU1ZBJvBgFpt13Ckt8TR2j03RzIfGVs6m8g=; b=ZYIBmWiCi7ZTus+CphIM1eskyqadKsL8Sn7oBIG9QjcPlzSD8f91Wmxt3SBzyRzZFQ Aomnq3dZtkgX+B62BrMZUDRgarTM3EqUNkqh2ZQEFx+g8/dvVktUan/s9lifORs2Ssse U72QuA6CSZ3yvLi1sV96aSVnVKXA3RP4/6g4V9PcuBPR/ThLqYjf4nJ2i/e1EyA4Tc70 K4b4NXnsizfJz9lvTdqb2GldiQJKhM6Ta6Krhc/R/sVfjSA0tC5M+I3Y04DsRYNHnfIw P7K7fRFH8Rh1dQ/rr8V8DlF1p21H8qfQZB69cr0SBJ0+BH2DrXf250TkA/i5/qZwOM26 TD0Q== X-Forwarded-Encrypted: i=1; AJvYcCW8/UkJdntzg/p7OaXU4UHmbTDvn1IhcLaerzOvWPq20RfxAYQXp2cjXKTCiMvaPUis6LIWytcpHvcXkvrL@postgresql.org X-Gm-Message-State: AOJu0Ywq2GZZlf0o/phBGIDcYvX8z4Pxba8BoLz7JtiR2ipYTCqtZYHD eL59wWAhmTLgVgqzd9aSU4Yysip4ouEjApEGaoWSa/hzcMBbIaUQURwfvnhfNK3vk3zCWyxNjhN SRHqJSTsBbFm/3DnvcDnx66EiVy0hIT0= X-Gm-Gg: ATEYQzy5nLcT7/2FHO4N75r9RG94BKpLl/SOXmr65jxk5mxqSV0nO91TAz5vYhGchlE NSDGskgBCgNRf0xQjyVeke8AO4QXKi3eZbVjh4Z/aGmM22HGSlsB5jauepz9XG0Nhrdr0TPczhp jMrb0CYbQjVT1AQv6Rh8GJ81jsNhSRYWUgHqyIqNAWR8P0EBwD4a4KuUIVBw4/LB/5nJO644Z+q kaoBqvtpy8oXywcy3WkioatVQRMc+BbKuQh+Gh/f1vj2fXYdA7sdfxp5qGt7+8kksk4SGmEBnuN WyuQ364X6VB7sx3PT1eA3sUzsRuZzqJfXj9CtyhM X-Received: by 2002:a4a:e841:0:b0:67b:c122:d29b with SMTP id 006d021491bc7-67bdaa68330mr2498933eaf.52.1773422324849; Fri, 13 Mar 2026 10:18:44 -0700 (PDT) MIME-Version: 1.0 References: <8a2e78c3-2f63-455f-80a9-cbd9eebaa245@eisentraut.org> In-Reply-To: From: Greg Sabino Mullane Date: Fri, 13 Mar 2026 13:18:09 -0400 X-Gm-Features: AaiRm52jkAyLkRu1B_QdD0Op2qe0yKzMQ32bzVUF3M3cKzJtoH-HT4M-1sEh8iE Message-ID: Subject: Re: tid_blockno() and tid_offset() accessor functions To: Matthias van de Meent Cc: Peter Eisentraut , Masahiko Sawada , Andres Freund , Ayush Tiwari , pgsql-hackers@postgresql.org Content-Type: multipart/alternative; boundary="000000000000b5a064064ceb0f82" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --000000000000b5a064064ceb0f82 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Fri, Mar 13, 2026 at 1:08=E2=80=AFPM Matthias van de Meent < boekewurm+postgres@gmail.com> wrote: > As for naming; I'd personally prefer to have 'heap' included in the names > here (e.g. heaptid_blkno(tid) or heap_blkno[_of](tid)), because > not all AMs may map tid.blkno exactly to a block number in the main fork. All our docs and code mention blocks and offsets as the components of a tid, so -1 on making things more obtuse. --=20 Cheers, Greg --000000000000b5a064064ceb0f82 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Fri, Mar 13, 2026 at 1:08=E2=80=AFPM M= atthias van de Meent <= boekewurm+postgres@gmail.com> wrote:
As= for naming; I'd personally prefer to have 'heap' included in t= he names here (e.g. heaptid_blkno(tid) or heap_blkno[_of](tid)), because not all AMs may map tid.blkno exactly to a block number in the main fork.

All our docs and code mention blocks and off= sets as the components of a tid, so -1 on making things more obtuse.
<= div>
--
Cheers,
Greg

--000000000000b5a064064ceb0f82--