Thread

  1. Re: like pg_shmem_allocations, but fine-grained for DSM registry ?

    Florents Tselai <florents.tselai@gmail.com> — 2025-07-08T11:17:54Z

    
    > On 25 Jun 2025, at 4:33 AM, Nathan Bossart <nathandbossart@gmail.com> wrote:
    > 
    > for DSAs and dshash tables, we probably want to use dsa_get_total_size()
    > for the "size" column.
    > 
    
    The thing is that dsa_get_total_size expects an already attached dsa.
    
    I can't see how it's possible to get the actual size for the dsa and dsh case,
    without attaching and then using, dsa_get_total_size on the attached dsa.
    And I don't think we wanna do that.
    
    Instead maybe we can just report NULL for the dsa and dsh cases? 
    
    Here’s a v5 that does it like that