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
77b4bd3b
Commit
77b4bd3b
authored
19 years ago
by
Tom Lane
Browse files
Options
Downloads
Patches
Plain Diff
Update some obsolete comments --- code is using t_self now, not t_ctid.
parent
dfdf07aa
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/backend/executor/execMain.c
+11
-20
11 additions, 20 deletions
src/backend/executor/execMain.c
with
11 additions
and
20 deletions
src/backend/executor/execMain.c
+
11
−
20
View file @
77b4bd3b
...
...
@@ -26,7 +26,7 @@
*
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/executor/execMain.c,v 1.25
2
2005/08/
0
1 2
0
:3
1:07
tgl Exp $
* $PostgreSQL: pgsql/src/backend/executor/execMain.c,v 1.25
3
2005/08/1
8
2
1
:3
4:20
tgl Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -1371,7 +1371,6 @@ ExecInsert(TupleTableSlot *slot,
HeapTuple
tuple
;
ResultRelInfo
*
resultRelInfo
;
Relation
resultRelationDesc
;
int
numIndices
;
Oid
newId
;
/*
...
...
@@ -1418,6 +1417,9 @@ ExecInsert(TupleTableSlot *slot,
/*
* insert the tuple
*
* Note: heap_insert returns the tid (location) of the new tuple
* in the t_self field.
*/
newId
=
heap_insert
(
resultRelationDesc
,
tuple
,
estate
->
es_snapshot
->
curcid
,
...
...
@@ -1429,14 +1431,9 @@ ExecInsert(TupleTableSlot *slot,
setLastTid
(
&
(
tuple
->
t_self
));
/*
* process indices
*
* Note: heap_insert adds a new tuple to a relation. As a side effect,
* the tupleid of the new tuple is placed in the new tuple's t_ctid
* field.
* insert index entries for tuple
*/
numIndices
=
resultRelInfo
->
ri_NumIndices
;
if
(
numIndices
>
0
)
if
(
resultRelInfo
->
ri_NumIndices
>
0
)
ExecInsertIndexTuples
(
slot
,
&
(
tuple
->
t_self
),
estate
,
false
);
/* AFTER ROW INSERT Triggers */
...
...
@@ -1563,7 +1560,6 @@ ExecUpdate(TupleTableSlot *slot,
Relation
resultRelationDesc
;
ItemPointerData
ctid
;
HTSU_Result
result
;
int
numIndices
;
/*
* abort the operation if not running transactions
...
...
@@ -1676,23 +1672,18 @@ lreplace:;
/*
* Note: instead of having to update the old index tuples associated
* with the heap tuple, all we do is form and insert new index tuples.
* This is because UPDATEs are actually DELETEs and INSERTs and index
* This is because UPDATEs are actually DELETEs and INSERTs
,
and index
* tuple deletion is done automagically by the vacuum daemon. All we
* do is insert new index tuples. -cim 9/27/89
*/
/*
*
process indices
*
insert index entries for tuple
*
* heap_update updates a tuple in the base relation by invalidating it
* and then inserting a new tuple to the relation. As a side effect,
* the tupleid of the new tuple is placed in the new tuple's t_ctid
* field. So we now insert index tuples using the new tupleid stored
* there.
* Note: heap_update returns the tid (location) of the new tuple
* in the t_self field.
*/
numIndices
=
resultRelInfo
->
ri_NumIndices
;
if
(
numIndices
>
0
)
if
(
resultRelInfo
->
ri_NumIndices
>
0
)
ExecInsertIndexTuples
(
slot
,
&
(
tuple
->
t_self
),
estate
,
false
);
/* AFTER ROW UPDATE Triggers */
...
...
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