1
0
mirror of https://github.com/postgres/postgres.git synced 2025-05-02 11:44:50 +03:00

Add PageData C type

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
This commit is contained in:
Peter Eisentraut 2025-01-20 10:53:47 +01:00
parent 73f6b9a3b0
commit 6e4df237fb
2 changed files with 3 additions and 1 deletions

View File

@ -78,7 +78,8 @@ extern PGDLLIMPORT bool ignore_checksum_failure;
* fields.
*/
typedef Pointer Page;
typedef char PageData;
typedef PageData *Page;
/*

View File

@ -1986,6 +1986,7 @@ PX_Combo
PX_HMAC
PX_MD
Page
PageData
PageGistNSN
PageHeader
PageHeaderData