From: Vitaliy Garnashevich <vgarnashevich@gmail.com>
To: pgsql-general@postgresql.org
Subject: EXPLAIN BUFFERS: dirtied
Date: Mon, 29 Jan 2018 20:31:53 +0200
Message-ID: <21a14f5f-b39c-3aa8-da2c-2112ee328b93@gmail.com> (raw)
Hi,
In EXPLAIN (ANALYZE, BUFFERS) for a SELECT query, I see the following
statistics under an Index Scan node:
Buffers: shared hit=8357288 read=6165444 dirtied=44820 written=5590
As far as I understand, that's the statistics for accesses to shared
buffers during the query:
- hit = required page was already in shared buffers
- read = required page was not in shared buffers, and was loaded from
disk (from filesystem cache)
- written = while loading the required page, there was no free space for
it in shared buffers, so some other dirty page was evicted from shared
buffers and was written to disk (to filesystem cache), to free some
space and to load the required page
But what is "dirtied" statistics? When a SELECT query could make pages
dirty?
Regards,
Vitaliy
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: vgarnashevich@gmail.com
Subject: Re: EXPLAIN BUFFERS: dirtied
In-Reply-To: <21a14f5f-b39c-3aa8-da2c-2112ee328b93@gmail.com>
References: <21a14f5f-b39c-3aa8-da2c-2112ee328b93@gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox