postgresql/src/backend
Andres Freund df6949ccf7 Add tid_block() and tid_offset() accessor functions
The two new functions allow to extract the block number and offset from a tid.

There are existing ways to do so (e.g. by doing (ctid::text::point)[0]), but
they are hard to remember and not pretty.

tid_block() returns int8 (bigint) because BlockNumber is uint32, which exceeds
the range of int4. tid_offset() returns int4 (integer) because OffsetNumber is
uint16, which fits safely in int4.

Bumps catversion.

Author: Ayush Tiwari <ayushtiwari.slg01@gmail.com>
Discussion: https://postgr.es/m/CAJTYsWUzok2+mvSYkbVUwq_SWWg-GdHqCuYumN82AU97SjwjCA@mail.gmail.com
2026-04-05 15:17:05 -04:00
..
access postgres_fdw: Inherit the local transaction's access/deferrable modes. 2026-04-05 18:55:00 +09:00
archive Don't include wait_event.h in pgstat.h 2026-03-06 16:24:58 +01:00
backup Online enabling and disabling of data checksums 2026-04-03 22:58:51 +02:00
bootstrap Allow index_create to suppress index_build progress reporting 2026-04-05 13:34:08 +02:00
catalog Allow index_create to suppress index_build progress reporting 2026-04-05 13:34:08 +02:00
commands Allow index_create to suppress index_build progress reporting 2026-04-05 13:34:08 +02:00
executor Give an 'options' parameter to tuple_delete/_update 2026-04-01 20:26:57 +02:00
foreign Remove bits* typedefs. 2026-03-30 16:12:08 -05:00
jit jit: No backport::SectionMemoryManager for LLVM 22. 2026-04-03 14:55:11 +13:00
lib dshash: Make it possible to suppress out of memory errors 2026-03-19 11:51:17 -04:00
libpq oauth: Let validators provide failure DETAILs 2026-04-03 16:05:33 -07:00
main Update copyright for 2026 2026-01-01 13:24:10 -05:00
nodes Add UPDATE/DELETE FOR PORTION OF 2026-04-01 19:06:03 +02:00
optimizer Add UPDATE/DELETE FOR PORTION OF 2026-04-01 19:06:03 +02:00
parser Add UPDATE/DELETE FOR PORTION OF 2026-04-01 19:06:03 +02:00
partitioning Thread flags through begin-scan APIs 2026-03-30 12:27:24 -04:00
po Update copyright for 2026 2026-01-01 13:24:10 -05:00
port Use ShmemInitStruct to allocate shmem for semaphores 2026-03-30 23:39:35 +03:00
postmaster Add elevel parameter to relation_needs_vacanalyze(). 2026-04-03 17:04:28 -05:00
regex Use fallthrough attribute instead of comment 2026-02-19 08:51:12 +01:00
replication Online enabling and disabling of data checksums 2026-04-03 22:58:51 +02:00
rewrite Add UPDATE/DELETE FOR PORTION OF 2026-04-01 19:06:03 +02:00
snowball Fix meson build of snowball code. 2026-01-05 16:51:36 -05:00
statistics Add support for extended statistics on virtual generated columns. 2026-04-01 17:02:24 +01:00
storage Check that the tranche name is unique in RequestNamedLWLockTranche 2026-04-05 21:05:20 +03:00
tcop Replace getopt() with our re-entrant variant in the backend 2026-03-30 20:47:16 +03:00
tsearch Require superuser to install a non-built-in selectivity estimator. 2026-02-09 10:07:31 -05:00
utils Add tid_block() and tid_offset() accessor functions 2026-04-05 15:17:05 -04:00
.gitignore
common.mk Blind attempt to fix LLVM dependency in the backend 2022-09-15 10:53:48 +07:00
Makefile ssl: Serverside SNI support for libpq 2026-03-18 12:37:11 +01:00
meson.build Add backtrace support for Windows using DbgHelp API 2026-02-24 17:34:56 +01:00
nls.mk Create a separate file listing backend types 2025-09-26 15:21:49 +02:00