Thread

  1. [PATCH v1 03/12] prune_xid-hist: pgstat prune_xid histogram interface

    Renan Alves Fonseca <renanfonseca@gmail.com> — 2025-05-22T09:36:36Z

    ---
     src/include/pgstat.h | 6 ++++++
     1 file changed, 6 insertions(+)
    
    diff --git a/src/include/pgstat.h b/src/include/pgstat.h
    index d48f4742beb..698b42bf66b 100644
    --- a/src/include/pgstat.h
    +++ b/src/include/pgstat.h
    @@ -737,6 +737,12 @@ extern void pgstat_count_heap_delete(Relation rel);
     extern void pgstat_count_truncate(Relation rel);
     extern void pgstat_update_heap_dead_tuples(Relation rel, int delta);
     
    +extern const PgStat_Counter *pgstat_get_prune_xid_histogram_freqs(PgStat_StatTabEntry *tabentry);
    +extern const TransactionId *pgstat_get_prune_xid_histogram_bounds(PgStat_StatTabEntry *tabentry);
    +extern void pgstat_update_transient_prune_xid_histogram(PruneXidHistogramTransient *hist, TransactionId old_xid, TransactionId new_xid);
    +extern void pgstat_update_relation_prune_xid_histogram(Relation rel, TransactionId old_xid, TransactionId new_xid);
    +extern void pgstat_update_shared_prune_xid_histogram(PgStat_StatTabEntry *tabentry, const PruneXidHistogramTransient *source);
    +
     extern void pgstat_twophase_postcommit(TransactionId xid, uint16 info,
     									   void *recdata, uint32 len);
     extern void pgstat_twophase_postabort(TransactionId xid, uint16 info,
    -- 
    2.47.0
    
    
    --=-=-=
    Content-Type: text/x-patch
    Content-Disposition: attachment;
     filename=v1-0004-prune_xid-hist-add-catalog-functions.patch