Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 8facf1e

Browse files
committed
README/C-comment: document GiST's NSN value
1 parent 8063d0f commit 8facf1e

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/backend/access/gist/README

+4-4
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 NSN to the LSN that the parent had when visited. If it did, the
96-
sibling page is immediately added to the front of the queue, ensuring that
97-
its items will be scanned in the same 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, the sibling page is immediately
97+
added to the front of the queue, ensuring that its items will be scanned
98+
in the same order as if they were still on the original 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

+1
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@
5151
#define F_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
typedef XLogRecPtr GistNSN;
5556

5657
/*

0 commit comments

Comments
 (0)