Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Reorganize heap_page_prune() function comment
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Wed, 20 Mar 2024 08:13:39 +0000 (10:13 +0200)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Wed, 20 Mar 2024 08:13:39 +0000 (10:13 +0200)
heap_page_prune()'s function header comment didn't explain the
parameters in the same order they appear in the function. Fix that.

Author: Melanie Plageman <melanieplageman@gmail.com>
Discussion: https://www.postgresql.org/message-id/20240320013602.6sypr4cx6sefpemg@liskov

src/backend/access/heap/pruneheap.c

index 4f12413b8b13f6806460d45a1ee9408711ed4764..15adfdc11b2e2aacd88e38b79bdabc874d3de494 100644 (file)
@@ -197,18 +197,17 @@ heap_page_prune_opt(Relation relation, Buffer buffer)
  * array following array truncation by us.
  *
  * vistest is used to distinguish whether tuples are DEAD or RECENTLY_DEAD
- * (see heap_prune_satisfies_vacuum and
- * HeapTupleSatisfiesVacuum).
+ * (see heap_prune_satisfies_vacuum).
  *
- * mark_unused_now indicates whether or not dead items can be set LP_UNUSED during
- * pruning.
- *
- * off_loc is the offset location required by the caller to use in error
- * callback.
+ * mark_unused_now indicates whether or not dead items can be set LP_UNUSED
+ * during pruning.
  *
  * presult contains output parameters needed by callers such as the number of
  * tuples removed and the number of line pointers newly marked LP_DEAD.
  * heap_page_prune() is responsible for initializing it.
+ *
+ * off_loc is the offset location required by the caller to use in error
+ * callback.
  */
 void
 heap_page_prune(Relation relation, Buffer buffer,