Re: Add pg_stat_vfdcache view for VFD cache statistics - Mailing list pgsql-hackers

From David Geier
Subject Re: Add pg_stat_vfdcache view for VFD cache statistics
Date
Msg-id 00379c7c-734a-48f9-b828-d79c4a657d56@gmail.com
Whole thread
In response to Add pg_stat_vfdcache view for VFD cache statistics  (KAZAR Ayoub <ma_kazar@esi.dz>)
List pgsql-hackers
>> v7-0001: looks good to me.
>>
>> v7-0003: I'm wondering if we still want cache_bytes in pg_stat_vfdcache,
>> now where it's exposed via pg_backend_memory_contexts. It seems to me
>> that other stats functionality also doesn't expose memory info that is
>> accessible via pg_backend_memory_contexts. But I'm not completely sure
>> what's best here.
>>
> pg_backend_memory_contexts is local to current backend session, so AFAIK
> there's no other way of getting cluster-wide vfd cache memory usage.
> Therefore we need cache_bytes for this?
My bad. I hadn't realized cache_bytes is for the entire cluster.

--
David Geier



pgsql-hackers by date:

Previous
From: Ayoub Kazar
Date:
Subject: Re: Add pg_stat_vfdcache view for VFD cache statistics
Next
From: Sami Imseih
Date:
Subject: Re: Reject WAIT FOR earlier in transaction-snapshot mode