I've renamed IOPATH to IOCONTEXT. I also have added assertions to confirm that unexpected statistics are not being accumulated.
There are also assorted other cleanups and changes.
It would be good to confirm that the rows being skipped and cells that are NULL in the view are the correct ones. The startup process will never use a BufferAccessStrategy, right?
On Wed, Jul 20, 2022 at 12:50 PM Andres Freund <andres@anarazel.de> wrote:
Seems a bit ugly to have an if (isLocalBuf) just after an isLocalBuf ?.
Changed this.
> + /* > + * When a strategy is in use, reused buffers from the strategy ring will > + * be counted as allocations for the purposes of IO Operation statistics > + * tracking. > + * > + * However, even when a strategy is in use, if a new buffer must be > + * allocated from shared buffers and added to the ring, this is counted > + * as a IOPATH_SHARED allocation. > + */
There's a bit too much duplication between the paragraphs...
I actually think the two paragraphs are making separate points. I've edited this, so see if you like it better now.