Skip to content

Commit a31fdbd

Browse files
author
Michael Paquier
committed
Remove outdated versions of PageHeaderData
This code was dead and maintained ony for multi-versioning.
1 parent 9acc962 commit a31fdbd

File tree

1 file changed

+0
-39
lines changed

1 file changed

+0
-39
lines changed

data.c

Lines changed: 0 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -152,45 +152,6 @@ doInflate(z_stream *zp, size_t in_size, size_t out_size,void *inbuf,
152152
}
153153
#endif
154154

155-
/* 80000 <= PG_VERSION_NUM < 80300 */
156-
typedef struct PageHeaderData_v80
157-
{
158-
XLogRecPtr pd_lsn;
159-
TimeLineID pd_tli;
160-
LocationIndex pd_lower;
161-
LocationIndex pd_upper;
162-
LocationIndex pd_special;
163-
uint16 pd_pagesize_version;
164-
ItemIdData pd_linp[1];
165-
} PageHeaderData_v80;
166-
167-
#define PageGetPageSize_v80(page) \
168-
((Size) ((page)->pd_pagesize_version & (uint16) 0xFF00))
169-
#define PageGetPageLayoutVersion_v80(page) \
170-
((page)->pd_pagesize_version & 0x00FF)
171-
#define SizeOfPageHeaderData_v80 (offsetof(PageHeaderData_v80, pd_linp))
172-
173-
/* 80300 <= PG_VERSION_NUM */
174-
typedef struct PageHeaderData_v83
175-
{
176-
XLogRecPtr pd_lsn;
177-
uint16 pd_tli;
178-
uint16 pd_flags;
179-
LocationIndex pd_lower;
180-
LocationIndex pd_upper;
181-
LocationIndex pd_special;
182-
uint16 pd_pagesize_version;
183-
TransactionId pd_prune_xid;
184-
ItemIdData pd_linp[1];
185-
} PageHeaderData_v83;
186-
187-
#define PageGetPageSize_v83(page) \
188-
((Size) ((page)->pd_pagesize_version & (uint16) 0xFF00))
189-
#define PageGetPageLayoutVersion_v83(page) \
190-
((page)->pd_pagesize_version & 0x00FF)
191-
#define SizeOfPageHeaderData_v83 (offsetof(PageHeaderData_v83, pd_linp))
192-
#define PD_VALID_FLAG_BITS_v83 0x0007
193-
194155
typedef union DataPage
195156
{
196157
PageHeaderData page_data;

0 commit comments

Comments
 (0)