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

Started by Hou, Zhijieabout 6 years ago2 messageshackers
Jump to latest
#1Hou, Zhijie
houzj.fnst@cn.fujitsu.com

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

Attachments:

0001-fix-typo.patchapplication/octet-stream; name=0001-fix-typo.patchDownload+1-2
#2David Rowley
dgrowleyml@gmail.com
In reply to: Hou, Zhijie (#1)
Re: Fix typo in src/backend/utils/cache/lsyscache.c

On Sun, 25 Oct 2020 at 14:23, Hou, Zhijie <houzj.fnst@cn.fujitsu.com> wrote:

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.

Thanks. Pushed.

David