Add const qualifiers to bufpage.h

Peter Eisentraut <peter@eisentraut.org>

Commit: 4f4a1d853a5c2d31f11c56939c44aa917e77c1da
Author: Peter Eisentraut <peter@eisentraut.org>
Date: 2025-01-20T10:06:57Z
Releases: 18.0
Add const qualifiers to bufpage.h

This makes use of the new PageData type.

PageGetSpecialPointer() had to be turned back into a macro, because it
is used in a way that sometimes it takes const and returns const and
sometimes takes non-const and returns non-const.

Discussion: https://www.postgresql.org/message-id/flat/692ee0da-49da-4d32-8dca-da224cc2800e@eisentraut.org

Files

PathChange+/−
src/backend/storage/page/bufpage.c modified +16 −16
src/include/storage/bufpage.h modified +37 −38

Discussion