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

Commit8facf1e

Browse files
committed
README/C-comment: document GiST's NSN value
1 parent8063d0f commit8facf1e

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

‎src/backend/access/gist/README

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,10 +92,10 @@ index child page to be split between the time we make a queue entry for it
9292
(while visiting its parent page) and the time we actually reach and scan
9393
the child page. To avoid missing the entries that were moved to the right
9494
sibling, we detect whether a split has occurred by comparing the child
95-
page's NSNto the LSN that the parent had when visited. If it did, the
96-
sibling page is immediately added to the front of thequeue, ensuring that
97-
its items will be scanned inthesame order as if they were still on the
98-
original child page.
95+
page's NSN(node sequence number, a special-purpose LSN) to the LSN that
96+
the parent had when visited. If it did, thesibling page is immediately
97+
added to the front ofthequeue, ensuring that its items will be scanned
98+
in the same order as if they were still on theoriginal child page.
9999

100100
As is usual in Postgres, the search algorithm only guarantees to find index
101101
entries that existed before the scan started; index entries added during

‎src/include/access/gist.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@
5151
#defineF_HAS_GARBAGE(1 << 4)/* some tuples on the page are dead,
5252
* but not deleted yet */
5353

54+
/* NSN - node sequence number, a special-purpose LSN */
5455
typedefXLogRecPtrGistNSN;
5556

5657
/*

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp