Skip to content

Commit ffa8444

Browse files
committed
tableam: Comment fixes.
Author: Haribabu Kommi Discussion: CAJrrPGeeYOqP3hkZyohDx_8dot4zvPuPMDBmhJ=iC85cTBNeYw@mail.gmail.com
1 parent a7cc523 commit ffa8444

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/backend/access/heap/heapam_handler.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
*
1313
*
1414
* NOTES
15-
* This files wires up the lower level heapam.c et routines with the
15+
* This files wires up the lower level heapam.c et al routines with the
1616
* tableam abstraction.
1717
*
1818
*-------------------------------------------------------------------------

src/include/access/tableam.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ typedef struct TableAmRoutine
164164
* synchronized scans, or page mode may be used (although not every AM
165165
* will support those).
166166
*
167-
* is_{bitmapscan, samplescan} specify whether the scan is inteded to
167+
* is_{bitmapscan, samplescan} specify whether the scan is intended to
168168
* support those types of scans.
169169
*
170170
* if temp_snap is true, the snapshot will need to be deallocated at
@@ -220,7 +220,7 @@ typedef struct TableAmRoutine
220220
Size (*parallelscan_initialize) (Relation rel, ParallelTableScanDesc pscan);
221221

222222
/*
223-
* Reinitilize `pscan` for a new scan. `rel` will be the same relation as
223+
* Reinitialize `pscan` for a new scan. `rel` will be the same relation as
224224
* when `pscan` was initialized by parallelscan_initialize.
225225
*/
226226
void (*parallelscan_reinitialize) (Relation rel, ParallelTableScanDesc pscan);
@@ -913,7 +913,7 @@ table_delete(Relation rel, ItemPointer tid, CommandId cid,
913913
* Input parameters:
914914
* relation - table to be modified (caller must hold suitable lock)
915915
* otid - TID of old tuple to be replaced
916-
* newtup - newly constructed tuple data to store
916+
* slot - newly constructed tuple data to store
917917
* cid - update command ID (used for visibility test, and stored into
918918
* cmax/cmin if successful)
919919
* crosscheck - if not InvalidSnapshot, also check old tuple against this
@@ -929,8 +929,8 @@ table_delete(Relation rel, ItemPointer tid, CommandId cid,
929929
* TM_SelfModified, TM_Updated, or TM_BeingModified
930930
* (the last only possible if wait == false).
931931
*
932-
* On success, the header fields of *newtup are updated to match the new
933-
* stored tuple; in particular, newtup->t_self is set to the TID where the
932+
* On success, the slot's tts_tid and tts_tableOid are updated to match the new
933+
* stored tuple; in particular, slot->tts_tid is set to the TID where the
934934
* new tuple was inserted, and its HEAP_ONLY_TUPLE flag is set iff a HOT
935935
* update was done. However, any TOAST changes in the new tuple's
936936
* data are not reflected into *newtup.
@@ -965,7 +965,7 @@ table_update(Relation rel, ItemPointer otid, TupleTableSlot *slot,
965965
* flags:
966966
* If TUPLE_LOCK_FLAG_LOCK_UPDATE_IN_PROGRESS, follow the update chain to
967967
* also lock descendant tuples if lock modes don't conflict.
968-
* If TUPLE_LOCK_FLAG_FIND_LAST_VERSION, update chain and lock lastest
968+
* If TUPLE_LOCK_FLAG_FIND_LAST_VERSION, update chain and lock latest
969969
* version.
970970
*
971971
* Output parameters:

0 commit comments

Comments
 (0)