pgsql: pg_buffercache: Change page_num type to bigint

From: Tomas Vondra <tomas(dot)vondra(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: pg_buffercache: Change page_num type to bigint
Date: 2025-04-08 10:42:38
Message-ID: E1u26Pe-003HPz-2G@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

pg_buffercache: Change page_num type to bigint

The page_num was defined as integer, which should be sufficient for the
near future (with 4K pages it's 8TB). But it's virtually free to return
bigint, and get a wider range. This was agreed on the thread, but I
forgot to tweak this in ba2a3c2302f1.

While at it, make the data types in CREATE VIEW a bit more consistent.

Discussion: https://postgr.es/m/CAKZiRmxh6KWo0aqRqvmcoaX2jUxZYb4kGp3N%3Dq1w%2BDiH-696Xw%40mail.gmail.co

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/91f1fe90c7d42641201bd2c474bd86d703b5e830

Modified Files
--------------
contrib/pg_buffercache/pg_buffercache--1.5--1.6.sql | 2 +-
contrib/pg_buffercache/pg_buffercache_pages.c | 6 +++---
doc/src/sgml/pgbuffercache.sgml | 2 +-
3 files changed, 5 insertions(+), 5 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Daniel Gustafsson 2025-04-08 11:40:04 Re: pgsql: Add support for basic NUMA awareness
Previous Message Amit Kapila 2025-04-08 10:20:22 pgsql: Fix uninitialized index information access during apply.