Remove redundant relam initialization
authorÁlvaro Herrera <alvherre@alvh.no-ip.org>
Wed, 27 Nov 2024 18:13:37 +0000 (19:13 +0100)
committerÁlvaro Herrera <alvherre@alvh.no-ip.org>
Wed, 27 Nov 2024 18:15:14 +0000 (19:15 +0100)
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

src/backend/utils/cache/relcache.c

index 72cd808df70738764aae07de2b2f4925b91b124d..d0892cee24dbfaf550f1fb76a42a335f660043f9 100644 (file)
@@ -1939,7 +1939,6 @@ formrdesc(const char *relationName, Oid relationReltype,
    relation->rd_rel->relallvisible = 0;
    relation->rd_rel->relkind = RELKIND_RELATION;
    relation->rd_rel->relnatts = (int16) natts;
-   relation->rd_rel->relam = HEAP_TABLE_AM_OID;
 
    /*
     * initialize attribute tuple form