Expand relkinds in buffercache_by_type metric#1271
Expand relkinds in buffercache_by_type metric#1271nadashaban11 wants to merge 2 commits intocybertec-postgresql:masterfrom
relkinds in buffercache_by_type metric#1271Conversation
relkinds in buffercache_by_type
relkinds in buffercache_by_typerelkinds in buffercache_by_type metric
|
Could you please explain what kind of buffer cache statistics have Sequence and View? Did you check the metric query output on a real database? Thanks |
|
Sure, when I searched and explored docs, I found that when we create Sequence, which is as a single-row table, then it has a storage and when The previous query result shown in (screenshot) is from my local running database. If you mean checking from pgwatch itself, I did not but I can do that if you want. For standard View it does not actually occupy buffers, but I included it to cover all |
|
Why didn't you add 'Foreign table' for example? |
|
I think it not stored in local files that postgres buffers manage. or am I misunderstanding that? |
|
so postgres buffers manage local files? |
|
What I know is that postgres storage manager manages the movement of local files from local storage into buffers when these files are needed to be accessible by any operation like read, write, or update. So if we have file is not stored locally, we can not manage by postgres. |
Description
I have noticed the
TODOin thebuffercache_by_typemetric, then I explored the official doc of PostgreSQL to expand 4 other classifications.Fixes
Added the following cases based on the doc:
S => "Sequence"
v => "View"
p => "Partitioned table"
I => "Partitioned index"
Screenshot
AI & Automation Policy
AI/automation tools used (leave blank if none):
AI helped me to know the query that gives me the
relkindsin my DBChecklist
psql).metrics.yaml).