Re: tid_blockno() and tid_offset() accessor functions - Mailing list pgsql-hackers

From Greg Sabino Mullane
Subject Re: tid_blockno() and tid_offset() accessor functions
Date
Msg-id CAKAnmmLVcPH1p=C=K7uAxg1Q+VeCJzty8xr=f7wmJSK3GBzcfQ@mail.gmail.com
Whole thread
In response to Re: tid_blockno() and tid_offset() accessor functions  (Matthias van de Meent <boekewurm+postgres@gmail.com>)
List pgsql-hackers
On Fri, Mar 13, 2026 at 1:08 PM 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.

--
Cheers,
Greg

pgsql-hackers by date:

Previous
From: Matthias van de Meent
Date:
Subject: Re: tid_blockno() and tid_offset() accessor functions
Next
From: "Greg Burd"
Date:
Subject: Re: Speed up COPY FROM text/CSV parsing using SIMD