Why MarkBufferDirtyHint doesn't increment shared_blks_dirtied

From: Amit Kapila <amit(dot)kapila16(at)gmail(dot)com>
To: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Why MarkBufferDirtyHint doesn't increment shared_blks_dirtied
Date: 2014-03-25 04:02:23
Message-ID: CAA4eK1J6ZpkrHr1U36FivPfqCJuS4TPDAwuzPZzuKLj-_XVRFg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

MarkBufferDirty() always increment BufferUsage counter
(shared_blks_dirtied) for dirty blocks whenever it dirties any
block, whereas same is not true for MarkBufferDirtyHint().
Is there any particular reason for not incrementing
shared_blks_dirtied in MarkBufferDirtyHint()?

With Regards,
Amit Kapila.
EnterpriseDB: http://www.enterprisedb.com

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Craig Ringer 2014-03-25 04:10:15 Re: About adding an attribute to pg_attibute
Previous Message Craig Ringer 2014-03-25 04:00:34 Re: Global flag