Content-Length: 265625 | pFad | http://github.com/postgrespro/postgres/commit/0c41c83d8ff44ed8f9753885e2c11b3277babcce

FD Clear up btree_xlog_split() alignment comment. · postgrespro/postgres@0c41c83 · GitHub
Skip to content

Commit 0c41c83

Browse files
Clear up btree_xlog_split() alignment comment.
Adjust a comment that describes how alignment of the new left page high key works in btree_xlog_split(), the nbtree page split REDO routine. The wording used before commit 2c03216 is much clearer, so go back to that.
1 parent 90d7f66 commit 0c41c83

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/backend/access/nbtree/nbtxlog.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,11 @@ btree_xlog_split(bool onleft, XLogReaderState *record)
281281
datalen -= newitemsz;
282282
}
283283

284-
/* Extract left hikey and its size (assuming 16-bit alignment) */
284+
/*
285+
* Extract left hikey and its size. We assume that 16-bit alignment
286+
* is enough to apply IndexTupleSize (since it's fetching from a
287+
* uint16 field).
288+
*/
285289
left_hikey = (IndexTuple) datapos;
286290
left_hikeysz = MAXALIGN(IndexTupleSize(left_hikey));
287291
datapos += left_hikeysz;

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/0c41c83d8ff44ed8f9753885e2c11b3277babcce

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy