diff --git a/src/include/access/tableam.h b/src/include/access/tableam.h
index bf3a472018..45590c5797 100644
--- a/src/include/access/tableam.h
+++ b/src/include/access/tableam.h
@@ -1597,7 +1597,7 @@ table_relation_size(Relation rel, ForkNumber forkNumber)
 }
 
 /*
- * table_needs_toast_table - does this relation need a toast table?
+ * table_relation_needs_toast_table - does this relation need a toast table?
  */
 static inline bool
 table_relation_needs_toast_table(Relation rel)
