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

Appearance settings

Commit 8facf1e

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

File tree

Expand file treeCollapse file tree

2 files changed

+5
-4
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+5
-4
lines changed

‎src/backend/access/gist/README

Copy file name to clipboardExpand all lines: src/backend/access/gist/README
+4-4Lines 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 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

Copy file name to clipboardExpand all lines: src/include/access/gist.h
+1Lines changed: 1 addition & 0 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.