Add const qualifiers to bufpage.h
authorPeter Eisentraut
Mon, 20 Jan 2025 09:53:47 +0000 (10:53 +0100)
committerPeter Eisentraut
Mon, 20 Jan 2025 10:06:57 +0000 (11:06 +0100)
commit4f4a1d853a5c2d31f11c56939c44aa917e77c1da
tree17800255020fa2e30a8c4c1786140c9786ac82cc
parent6e4df237fbb532e7807cdd97f8b0b0d85093b9ee
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
src/backend/storage/page/bufpage.c
src/include/storage/bufpage.h