On Wed, Jul 15, 2026 at 12:16:26PM -0500, Sami Imseih wrote: > Also, 2 new external APIs are introduced: > - pgstat_get_hash_for_kind(PgStat_Kind kind) > - pgstat_get_dsa_for_kind(PgStat_Kind kind) > These allow the extension to retrieve the dshash and dsa pointers for > both iterating through the entries and for setting the size limit on > the dsa. Otherwise, the management of these separate structures is > transparent to the extension and managed by the pgstat infrastructure. > > These APIs are necessary because we don't have higher-level abstractions > in pgstats to do things like "iterate through this kind" or "set size > limit for this stats kind"; such abstractions may be good to have to > avoid using dshash_seq_* or dsa_set_size_limit directly, but I am not > sure they are worth it at this point. > > Only variable-length stats can opt into own_hash. Fixed-length allocates their > data into PgStat_ShmemControl.
Please note that this patch does not apply anymore. Could you rebase, please? -- Michael
signature.asc
Description: PGP signature
