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
c76ed815
Commit
c76ed815
authored
18 years ago
by
Tom Lane
Browse files
Options
Downloads
Patches
Plain Diff
Remove some dead code, per Heikki.
parent
037f8413
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/nbtinsert.c
+12
-17
12 additions, 17 deletions
src/backend/access/nbtree/nbtinsert.c
with
12 additions
and
17 deletions
src/backend/access/nbtree/nbtinsert.c
+
12
−
17
View file @
c76ed815
...
...
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/access/nbtree/nbtinsert.c,v 1.14
8
2007/0
1/27 20:53:30
tgl Exp $
* $PostgreSQL: pgsql/src/backend/access/nbtree/nbtinsert.c,v 1.14
9
2007/0
2/06 14:55:11
tgl Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -855,22 +855,17 @@ _bt_split(Relation rel, Buffer buf, OffsetNumber firstright,
/* cope with possibility that newitem goes at the end */
if
(
i
<=
newitemoff
)
{
if
(
newitemonleft
)
{
_bt_pgaddtup
(
rel
,
leftpage
,
newitemsz
,
newitem
,
leftoff
,
"left sibling"
);
itup_off
=
leftoff
;
itup_blkno
=
BufferGetBlockNumber
(
buf
);
leftoff
=
OffsetNumberNext
(
leftoff
);
}
else
{
_bt_pgaddtup
(
rel
,
rightpage
,
newitemsz
,
newitem
,
rightoff
,
"right sibling"
);
itup_off
=
rightoff
;
itup_blkno
=
BufferGetBlockNumber
(
rbuf
);
rightoff
=
OffsetNumberNext
(
rightoff
);
}
/*
* Can't have newitemonleft here; that would imply we were told to put
* *everything* on the left page, which cannot fit (if it could, we'd
* not be splitting the page).
*/
Assert
(
!
newitemonleft
);
_bt_pgaddtup
(
rel
,
rightpage
,
newitemsz
,
newitem
,
rightoff
,
"right sibling"
);
itup_off
=
rightoff
;
itup_blkno
=
BufferGetBlockNumber
(
rbuf
);
rightoff
=
OffsetNumberNext
(
rightoff
);
}
/*
...
...
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