Fix incorrect parameter name in a function header comment
authorDavid Rowley <drowley@postgresql.org>
Sun, 25 Oct 2020 09:39:00 +0000 (22:39 +1300)
committerDavid Rowley <drowley@postgresql.org>
Sun, 25 Oct 2020 09:40:03 +0000 (22:40 +1300)
Author: Zhijie Hou
Discussion: https://postgr.es/m/14cd74ea00204cc8a7ea5d738ac82cd1@G08CNEXMBPEKD05.g08.fujitsu.local
Backpatch-through: 12, where the mistake was introduced

src/backend/utils/cache/lsyscache.c

index f3bf413829fc5cb1282b73ff3146fac2c8c7dfbb..140339073b63636328d0baae97aa0f602c9dae55 100644 (file)
@@ -874,7 +874,7 @@ get_attnum(Oid relid, const char *attname)
 /*
  * get_attgenerated
  *
- *     Given the relation id and the attribute name,
+ *     Given the relation id and the attribute number,
  *     return the "attgenerated" field from the attribute relation.
  *
  *     Errors if not found.