Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
postgres-lambda-diff
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jakob Huber
postgres-lambda-diff
Commits
dc73e25a
Commit
dc73e25a
authored
24 years ago
by
Tom Lane
Browse files
Options
Downloads
Patches
Plain Diff
Add commentary about varying usage of scankeys in btree code.
parent
916b2321
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/backend/access/nbtree/README
+12
-1
12 additions, 1 deletion
src/backend/access/nbtree/README
with
12 additions
and
1 deletion
src/backend/access/nbtree/README
+
12
−
1
View file @
dc73e25a
$Header: /cvsroot/pgsql/src/backend/access/nbtree/README,v 1.
3
2000/07/2
1 22:14:09
tgl Exp $
$Header: /cvsroot/pgsql/src/backend/access/nbtree/README,v 1.
4
2000/07/2
5 05:26:40
tgl Exp $
This directory contains a correct implementation of Lehman and Yao's
high-concurrency B-tree management algorithm (P. Lehman and S. Yao,
...
...
@@ -119,6 +119,17 @@ In addition, the following things are handy to know:
exists only to support VACUUM and allow it to delete items while
it's scanning the index.
+ "ScanKey" data structures are used in two fundamentally different ways
in this code. Searches for the initial position for a scan, as well as
insertions, use scankeys in which the comparison function is a 3-way
comparator (<0, =0, >0 result). These scankeys are built within the
btree code (eg, by _bt_mkscankey()) and used by _bt_compare(). Once we
are positioned, sequential examination of tuples in a scan is done by
_bt_checkkeys() using scankeys in which the comparison functions return
booleans --- for example, int4lt might be used. These scankeys are the
ones originally passed in from outside the btree code. Same
representation, but different comparison functions!
Notes about data representation:
+ The right-sibling link required by L&Y is kept in the page "opaque
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment