From: | Robert Haas <robertmhaas(at)gmail(dot)com> |
---|---|
To: | Amit Kapila <amit(dot)kapila16(at)gmail(dot)com> |
Cc: | pgsql-hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: Why MarkBufferDirtyHint doesn't increment shared_blks_dirtied |
Date: | 2014-03-31 17:37:39 |
Message-ID: | CA+Tgmob65BmGsipEZtwrKOM7M7O6k6=qWGgFMuB+6B475OVSZQ@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Wed, Mar 26, 2014 at 11:23 PM, Amit Kapila <amit(dot)kapila16(at)gmail(dot)com> wrote:
> On Thu, Mar 27, 2014 at 1:39 AM, Robert Haas <robertmhaas(at)gmail(dot)com> wrote:
>> On Mon, Mar 24, 2014 at 9:02 PM, Amit Kapila <amit(dot)kapila16(at)gmail(dot)com> wrote:
>>> 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()?
>>
>> Hmm, I think that's a bug, dating back to this commit:
>>
>> commit 2254367435fcc4a31cc3b6d8324e33c5c30f265a
>
> Right.
> Do you think the fix attached in my previous mail is appropriate?
> http://www.postgresql.org/message-id/CAA4eK1KQQSpNmfxg8Cg3-JZD23Q4Ee3iCsuLZGekH=DnaGPjRA@mail.gmail.com
Looks right to me. Committed and back-patched to 9.2.
--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company
From | Date | Subject | |
---|---|---|---|
Next Message | Sergey Konoplev | 2014-03-31 18:01:56 | Re: Cube extension kNN support |
Previous Message | steve k | 2014-03-31 17:22:27 | Re: PQputCopyData dont signal error |