Re: WAL Rate Limiting - Mailing list pgsql-hackers

From Simon Riggs
Subject Re: WAL Rate Limiting
Date
Msg-id CA+U5nM+kLgwhvABZqNfYqQDAM9AjaVSDY_NWXPcbxH8Dd=pQxg@mail.gmail.com
Whole thread Raw
In response to Re: WAL Rate Limiting  (Heikki Linnakangas <hlinnakangas@vmware.com>)
List pgsql-hackers
On 17 January 2014 16:34, Heikki Linnakangas <hlinnakangas@vmware.com> wrote:
> On 01/17/2014 05:20 PM, Simon Riggs wrote:
>>
>> +       if (RelationNeedsWAL(indexrel))
>> +               CHECK_FOR_WAL_BUDGET();
>
>
> I don't think we need the RelationNeedsWAL tests. If the relation is not
> WAL-logged, you won't write much WAL, so you should easily stay under the
> limit. And CHECK_FOR_WAL_BUDGET() better be cheap when you're below the
> limit.

OK, I'll remove them, thanks.

-- Simon Riggs                   http://www.2ndQuadrant.com/PostgreSQL Development, 24x7 Support, Training & Services



pgsql-hackers by date:

Previous
From: Fujii Masao
Date:
Subject: Re: Comment typo in src/backend/command/cluster.c
Next
From: Simon Riggs
Date:
Subject: Re: WAL Rate Limiting