Skip to content

Commit 6e4df23

Browse files
committed
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 ddbba3a, 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
1 parent 73f6b9a commit 6e4df23

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/include/storage/bufpage.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,8 @@ extern PGDLLIMPORT bool ignore_checksum_failure;
7878
* fields.
7979
*/
8080

81-
typedef Pointer Page;
81+
typedef char PageData;
82+
typedef PageData *Page;
8283

8384

8485
/*

src/tools/pgindent/typedefs.list

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1986,6 +1986,7 @@ PX_Combo
19861986
PX_HMAC
19871987
PX_MD
19881988
Page
1989+
PageData
19891990
PageGistNSN
19901991
PageHeader
19911992
PageHeaderData

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy