[GENERAL] Block duplications in a shared buffers

Поиск
Список
Период
Сортировка
От pinker
Тема [GENERAL] Block duplications in a shared buffers
Дата
Msg-id 1510067703470-0.post@n3.nabble.com
обсуждение исходный текст
Ответы Re: [GENERAL] Block duplications in a shared buffers  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
Hi All,
I was analysing shared buffers content and noticed that exactly the same
disk block appears there many times with different or the same usagecount.
What's the cause of that? It's because of transactions? 

SELECT count(*), relfilenode, relblocknumber, array_agg(usagecount) usagecount, array_agg(isdirty)    isdirty,
array_agg(bufferid)  bufferid
 
FROM fo_main.buffercache
WHERE added = 'some_date'
GROUP BY relfilenode, relblocknumber
HAVING count(*) > 1
ORDER BY 1 DESC;

Sample result:

<http://www.postgresql-archive.org/file/t342733/Auswahl_830.png> 




--
Sent from: http://www.postgresql-archive.org/PostgreSQL-general-f1843780.html


-- 
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general

В списке pgsql-general по дате отправления:

Предыдущее
От: "David G. Johnston"
Дата:
Сообщение: Re: [GENERAL] Naming conventions for column names
Следующее
От: Tom Lane
Дата:
Сообщение: Re: [GENERAL] Block duplications in a shared buffers