1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-28 23:42:10 +03:00

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 ba2a3c2302.

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
This commit is contained in:
Tomas Vondra
2025-04-08 11:52:02 +02:00
parent b8a6078ca8
commit 91f1fe90c7
3 changed files with 5 additions and 5 deletions

View File

@ -267,7 +267,7 @@
<row>
<entry role="catalog_table_entry"><para role="column_definition">
<structfield>os_page_num</structfield> <type>int</type>
<structfield>os_page_num</structfield> <type>bigint</type>
</para>
<para>
number of OS memory page for this buffer