Hi hackers, Here is v2 of this patch, rebased on current HEAD (cae90d74796, as of 2026-06-25).
This rebase was triggered by the CFBot "Needs rebase" notification on CommitFest entry #6835 [1]. The patch no longer applied cleanly due to upstream's async I/O refactor [1] https://commitfest.postgresql.org/patch/6835/ Changes from v1: - Rebased onto PostgreSQL 19beta1 HEAD (1047 commits upstream since v1) - Adapted bufmgr.c changes to work with the async I/O refactor introduced upstream. pgstat_count_local_blk_hit() is now placed inside TrackBufferHit(), the unified hit-tracking function added by the async I/O work. pgstat_count_local_blk_read() is placed in StartReadBuffersImpl() next to the existing local_blks_read update. - Added missing !OidIsValid(dboid) || !IsUnderPostmaster guards to pgstat_count_temp_table() for consistency with the other 4 counting functions added in the same patch. - Added !IsBootstrapProcessingMode() check in heap.c (defensive; bootstrap cannot create temp tables, but makes intent explicit). Patch attached. -- Mohamed Ali
v2-0001-Add-temp-table-monitoring-columns-to-pg_stat_data.patch
Description: Binary data
