Redundant initialization of table AM oid in relcache

Started by Jingtang Zhangabout 2 years ago1 messageshackers
Jump to latest
#1Jingtang Zhang
mrdrivingduck@gmail.com

Hi~

Just found 'relam' field is assigned twice during relcache initialization. We
have a specific area for initialization AM related stuff several lines later:

/*
* initialize the table am handler
*/
relation->rd_rel->relam = HEAP_TABLE_AM_OID;
relation->rd_tableam = GetHeapamTableAmRoutine();

so previous assignment seems not needed and can be removed.

—

Regards, Jingtang



Attachments:

0001-Remove-redundant-initialization-of-table-AM-oid-in-r.patchapplication/octet-stream; name=0001-Remove-redundant-initialization-of-table-AM-oid-in-r.patch; x-unix-mode=0644Download+0-2