On Thu, Oct 23, 2025 at 07:57:38PM -0500, Sami Imseih wrote: > I was trying to avoid an extra field in PgStat_KindInfo if possible, but > it's worthwhile to provide more flexibility to an extension. I will go > with this.
Yes, I don't think that we will be able to avoid some refactoring of the existing callbacks. The introduction of a new one may not be completely necessary, though, especially if we reuse the reset callback to be called when the stats read and write finish to close any fds we may have opened when processing. Maintaining the state of the files opened within each stat kind code across multiple calls of the new "serialized" callback feels a bit more natural and more flexible, at least it's my take on the matter. -- Michael
signature.asc
Description: PGP signature
