Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
8facf1ea
Commit
8facf1ea
authored
Feb 13, 2021
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
README/C-comment: document GiST's NSN value
parent
8063d0f6
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
src/backend/access/gist/README
src/backend/access/gist/README
+4
-4
src/include/access/gist.h
src/include/access/gist.h
+1
-0
No files found.
src/backend/access/gist/README
View file @
8facf1ea
...
@@ -92,10 +92,10 @@ index child page to be split between the time we make a queue entry for it
...
@@ -92,10 +92,10 @@ index child page to be split between the time we make a queue entry for it
(while visiting its parent page) and the time we actually reach and scan
(while visiting its parent page) and the time we actually reach and scan
the child page. To avoid missing the entries that were moved to the right
the child page. To avoid missing the entries that were moved to the right
sibling, we detect whether a split has occurred by comparing the child
sibling, we detect whether a split has occurred by comparing the child
page's NSN
to the LSN that the parent had when visited. If it did, the
page's NSN
(node sequence number, a special-purpose LSN) to the LSN that
sibling page is immediately added to the front of the queue, ensuring that
the parent had when visited. If it did, the sibling page is immediately
its items will be scanned in the same order as if they were still on the
added to the front of the queue, ensuring that its items will be scanned
original child page.
in the same order as if they were still on the
original child page.
As is usual in Postgres, the search algorithm only guarantees to find index
As is usual in Postgres, the search algorithm only guarantees to find index
entries that existed before the scan started; index entries added during
entries that existed before the scan started; index entries added during
...
...
src/include/access/gist.h
View file @
8facf1ea
...
@@ -51,6 +51,7 @@
...
@@ -51,6 +51,7 @@
#define F_HAS_GARBAGE (1 << 4)
/* some tuples on the page are dead,
#define F_HAS_GARBAGE (1 << 4)
/* some tuples on the page are dead,
* but not deleted yet */
* but not deleted yet */
/* NSN - node sequence number, a special-purpose LSN */
typedef
XLogRecPtr
GistNSN
;
typedef
XLogRecPtr
GistNSN
;
/*
/*
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment