]> granicus.if.org Git - postgresql/commitdiff
tableam: Comment fixes.
authorAndres Freund <andres@anarazel.de>
Fri, 29 Mar 2019 15:16:35 +0000 (08:16 -0700)
committerAndres Freund <andres@anarazel.de>
Fri, 29 Mar 2019 15:17:26 +0000 (08:17 -0700)
Author: Haribabu Kommi
Discussion: CAJrrPGeeYOqP3hkZyohDx_8dot4zvPuPMDBmhJ=iC85cTBNeYw@mail.gmail.com

src/backend/access/heap/heapam_handler.c
src/include/access/tableam.h

index 581a6bd9d16d8e645ae78a99fd808ca89c33fc84..39eab1e28d96f471333d32d96dac07444edbdffd 100644 (file)
@@ -12,7 +12,7 @@
  *
  *
  * NOTES
- *       This files wires up the lower level heapam.c et routines with the
+ *       This files wires up the lower level heapam.c et al routines with the
  *       tableam abstraction.
  *
  *-------------------------------------------------------------------------
index 7101d46c02c6fa712e7c6b4d8a54f2cec9ae3de1..c571f8a89947aa8d4fcffe87c265ca0322fa2243 100644 (file)
@@ -164,7 +164,7 @@ typedef struct TableAmRoutine
         * synchronized scans, or page mode may be used (although not every AM
         * will support those).
         *
-        * is_{bitmapscan, samplescan} specify whether the scan is inteded to
+        * is_{bitmapscan, samplescan} specify whether the scan is intended to
         * support those types of scans.
         *
         * if temp_snap is true, the snapshot will need to be deallocated at
@@ -220,7 +220,7 @@ typedef struct TableAmRoutine
        Size            (*parallelscan_initialize) (Relation rel, ParallelTableScanDesc pscan);
 
        /*
-        * Reinitilize `pscan` for a new scan. `rel` will be the same relation as
+        * Reinitialize `pscan` for a new scan. `rel` will be the same relation as
         * when `pscan` was initialized by parallelscan_initialize.
         */
        void            (*parallelscan_reinitialize) (Relation rel, ParallelTableScanDesc pscan);
@@ -913,7 +913,7 @@ table_delete(Relation rel, ItemPointer tid, CommandId cid,
  * Input parameters:
  *     relation - table to be modified (caller must hold suitable lock)
  *     otid - TID of old tuple to be replaced
- *     newtup - newly constructed tuple data to store
+ *     slot - newly constructed tuple data to store
  *     cid - update command ID (used for visibility test, and stored into
  *             cmax/cmin if successful)
  *     crosscheck - if not InvalidSnapshot, also check old tuple against this
@@ -929,8 +929,8 @@ table_delete(Relation rel, ItemPointer tid, CommandId cid,
  * TM_SelfModified, TM_Updated, or TM_BeingModified
  * (the last only possible if wait == false).
  *
- * On success, the header fields of *newtup are updated to match the new
- * stored tuple; in particular, newtup->t_self is set to the TID where the
+ * On success, the slot's tts_tid and tts_tableOid are updated to match the new
+ * stored tuple; in particular, slot->tts_tid is set to the TID where the
  * new tuple was inserted, and its HEAP_ONLY_TUPLE flag is set iff a HOT
  * update was done.  However, any TOAST changes in the new tuple's
  * data are not reflected into *newtup.
@@ -965,7 +965,7 @@ table_update(Relation rel, ItemPointer otid, TupleTableSlot *slot,
  *     flags:
  *             If TUPLE_LOCK_FLAG_LOCK_UPDATE_IN_PROGRESS, follow the update chain to
  *             also lock descendant tuples if lock modes don't conflict.
- *             If TUPLE_LOCK_FLAG_FIND_LAST_VERSION, update chain and lock lastest
+ *             If TUPLE_LOCK_FLAG_FIND_LAST_VERSION, update chain and lock latest
  *             version.
  *
  * Output parameters: