Re: WAL Rate Limiting - Mailing list pgsql-hackers

From Simon Riggs
Subject Re: WAL Rate Limiting
Date
Msg-id CA+U5nMJngKCA403bjCbRD+=d6dbbfpT25cBODhNd2TE-ZUe+yA@mail.gmail.com
Whole thread Raw
In response to Re: WAL Rate Limiting  (Andres Freund <andres@2ndquadrant.com>)
List pgsql-hackers
On 16 January 2014 17:29, Andres Freund <andres@2ndquadrant.com> wrote:

>> Please let me know if I missed something (rather than debating what is
>> or is not a "maintenance" command).
>
> If we're going to do this for DML - which I am far from convinced of -
> we also should do it for SELECT, since that can generate significant
> amounts of WAL with checksums turned on.
> Otherwise stuff like INSERT ... SELECT, UPDATE FROM et al. will behave
> very confusingly since suddenly thez will not only block the WAL
> generated by the INSERT but also the SELECT.

Good point, but rather happily I can say "thought of that" and refer
you to the other patch which limits SELECT's ability to dirty pages,
and thus, with checksums enabled will limit the generation of WAL.
(And no, they aren't the same thing).

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



pgsql-hackers by date:

Previous
From: Stephen Frost
Date:
Subject: Re: Why conf.d should be default, and auto.conf and recovery.conf should be in it
Next
From: Tom Lane
Date:
Subject: Re: WAL Rate Limiting