Re: tid_blockno() and tid_offset() accessor functions
Andres Freund <andres@anarazel.de>
From: Andres Freund <andres@anarazel.de>
To: Ayush Tiwari <ayushtiwari.slg01@gmail.com>
Cc: Matthias van de Meent <boekewurm+postgres@gmail.com>, Peter Eisentraut <peter@eisentraut.org>,
Masahiko Sawada <sawada.mshk@gmail.com>, pgsql-hackers@postgresql.org
Date: 2026-04-05T19:30:09Z
Lists: pgsql-hackers
Hi, On 2026-03-14 14:31:32 +0530, Ayush Tiwari wrote: > Attaching a patch with all document changes, removed the cross-reference to > datatype-oid entirely. I've moved the &func-tid; entry in func.sgml to > directly follow &func-textsearch;, which fits better alphabetically, and > reworded the introductory paragraph to be much more concise, directly > pointing to the table. Pushed this after making some small changes (removed some IMO unnecessary comments, replaced <type>TID</type> with <acronym/>, as TID is not the type's name, ...). I was reminded of this thread while in the process of doing some performance validation that required getting all the block numbers from an index scan, which required me to remember (ctid::text::point)[0], which I find to be very ugly. Closed the CF entry. Thanks for the patch! Greetings, Andres Freund
Commits
-
Add tid_block() and tid_offset() accessor functions
- df6949ccf7a6 19 (unreleased) landed