> Instead of allocating the dshash_table pointer in the loop, perhaps
> use temporary variables to store the number of hashtables and an array
> of them.  That would matter if somebody would like to extend this API
> to a subset of N hashtables, where 1 < N < num_var_hashes?

Ok, there maybe a reason for the subset use case. v4 attached
does it that way.

--
Sami

Attachment: v4-0001-pgstat-Add-kind-filter-to-pgstat_drop_matching_en.patch
Description: Binary data

Reply via email to