Add PageData C type
authorPeter Eisentraut <[email protected]>
Mon, 20 Jan 2025 09:53:47 +0000 (10:53 +0100)
committerPeter Eisentraut <[email protected]>
Mon, 20 Jan 2025 10:06:49 +0000 (11:06 +0100)
This adds the C type PageData and makes the existing type Page a
pointer to it.  This follows the usual PostgreSQL C type naming scheme
of Foo/FooData pairs.  (Prior to commit ddbba3aac86, PageData existed
as an unrelated type.)  The type definitions are compatible, so this
doesn't change anything except some of the naming.

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

src/include/storage/bufpage.h
src/tools/pgindent/typedefs.list

index 4007438719a4e3aad1dbc0dac1a0c9ada973b902..c28ec1fb1d7ed750bf7cbcc713e4aabfcb851be7 100644 (file)
@@ -78,7 +78,8 @@ extern PGDLLIMPORT bool ignore_checksum_failure;
  * fields.
  */
 
-typedef Pointer Page;
+typedef char PageData;
+typedef PageData *Page;
 
 
 /*
index 668bddbfcd711173a07bce9c9b7630ae208d1f0c..d5aa5c295ae7893b6f6f5db67153d8f12c1b5af4 100644 (file)
@@ -1986,6 +1986,7 @@ PX_Combo
 PX_HMAC
 PX_MD
 Page
+PageData
 PageGistNSN
 PageHeader
 PageHeaderData