Fix typo in src/backend/utils/cache/lsyscache.c

Hou, Zhijie <houzj.fnst@cn.fujitsu.com>

From: "Hou, Zhijie" <houzj.fnst@cn.fujitsu.com>
To: PostgreSQL Developers <pgsql-hackers@lists.postgresql.org>
Date: 2020-10-25T01:22:55Z
Lists: pgsql-hackers

Attachments

Hi

I found the comment of function get_attgenerated(Oid relid, AttrNumber attnum) seems wrong.
It seems the function is given the attribute number not the name.

/*
  * 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.

Best regards,
houzj


Commits

  1. Fix incorrect parameter name in a function header comment