The variable in question was changed from a struct to a pointer some
time ago (
77947c51c08). Using MemSet to zero it still works but is
obviously unidiomatic and confusing, so change it to a straight
assignment.
Author: Ranier Vilela <
[email protected]>
Discussion: https://www.postgresql.org/message-id/flat/CAEudQApCeq4JjW1BdnwU=m=-DvG5WyUik0Yfn3p6UNphiHjj+w@mail.gmail.com
rel->rd_firstRelfilenodeSubid = InvalidSubTransactionId;
rel->rd_droppedSubid = InvalidSubTransactionId;
rel->rd_amcache = NULL;
- MemSet(&rel->pgstat_info, 0, sizeof(rel->pgstat_info));
+ rel->pgstat_info = NULL;
/*
* Recompute lock and physical addressing info. This is needed in