Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commita6cd1fc

Browse files
author
Amit Kapila
committed
Change xl_hash_vacuum_one_page.ntuples from int to uint16.
This will create two bytes of padding space in xl_hash_vacuum_one_page whichcan be used for future patches. This makes the datatype ofxl_hash_vacuum_one_page.ntuples same as gistxlogDelete.ntodelete which isadvisable as both are used for the same purpose.Author: Bertrand DrouvotReviewed-by: Nathan BossartDiscussion:https://postgr.es/m/b0e20c40-cb7a-fc1c-c607-2a78dac5021e@gmail.com
1 parentded7b7b commita6cd1fc

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

‎src/include/access/hash_xlog.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -251,13 +251,13 @@ typedef struct xl_hash_init_bitmap_page
251251
typedefstructxl_hash_vacuum_one_page
252252
{
253253
TransactionIdsnapshotConflictHorizon;
254-
intntuples;
254+
uint16ntuples;
255255

256256
/* TARGET OFFSET NUMBERS FOLLOW AT THE END */
257257
}xl_hash_vacuum_one_page;
258258

259259
#defineSizeOfHashVacuumOnePage \
260-
(offsetof(xl_hash_vacuum_one_page, ntuples) + sizeof(int))
260+
(offsetof(xl_hash_vacuum_one_page, ntuples) + sizeof(uint16))
261261

262262
externvoidhash_redo(XLogReaderState*record);
263263
externvoidhash_desc(StringInfobuf,XLogReaderState*record);

‎src/include/access/xlog_internal.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
/*
3232
* Each page of XLOG file has a header like this:
3333
*/
34-
#defineXLOG_PAGE_MAGIC0xD111/* can be used as WAL version indicator */
34+
#defineXLOG_PAGE_MAGIC0xD112/* can be used as WAL version indicator */
3535

3636
typedefstructXLogPageHeaderData
3737
{

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp