mirror of
https://github.com/postgres/postgres.git
synced 2025-07-21 16:02:15 +03:00
Remove redundant relam initialization
This struct member is initialized again a few lines below in the same function. This is cosmetic, so no backpatch. Reported-by: Jingtang Zhang <mrdrivingduck@gmail.com> Discussion: https://postgr.es/m/AFF74506-B925-46BB-B875-CF5A946170EB@gmail.com
This commit is contained in:
1
src/backend/utils/cache/relcache.c
vendored
1
src/backend/utils/cache/relcache.c
vendored
@ -1939,7 +1939,6 @@ formrdesc(const char *relationName, Oid relationReltype,
|
|||||||
relation->rd_rel->relallvisible = 0;
|
relation->rd_rel->relallvisible = 0;
|
||||||
relation->rd_rel->relkind = RELKIND_RELATION;
|
relation->rd_rel->relkind = RELKIND_RELATION;
|
||||||
relation->rd_rel->relnatts = (int16) natts;
|
relation->rd_rel->relnatts = (int16) natts;
|
||||||
relation->rd_rel->relam = HEAP_TABLE_AM_OID;
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* initialize attribute tuple form
|
* initialize attribute tuple form
|
||||||
|
Reference in New Issue
Block a user