Re: WAL logging problem in 9.4.3? - Mailing list pgsql-hackers

From Heikki Linnakangas
Subject Re: WAL logging problem in 9.4.3?
Date
Msg-id 56B342F5.1050502@iki.fi
Whole thread Raw
In response to Re: WAL logging problem in 9.4.3?  (Michael Paquier <michael.paquier@gmail.com>)
Responses Re: WAL logging problem in 9.4.3?
Re: WAL logging problem in 9.4.3?
List pgsql-hackers
On 22/10/15 03:56, Michael Paquier wrote:
> On Wed, Oct 21, 2015 at 11:53 PM, Alvaro Herrera
> <alvherre@2ndquadrant.com> wrote:
>> Heikki Linnakangas wrote:
>>
>>> Thanks. For comparison, I wrote a patch to implement what I had in mind.
>>>
>>> When a WAL-skipping COPY begins, we add an entry for that relation in a
>>> "pending-fsyncs" hash table. Whenever we perform any action on a heap that
>>> would normally be WAL-logged, we check if the relation is in the hash table,
>>> and skip WAL-logging if so.
>>
>> I think this wasn't applied, was it?
>
> No, it was not applied.

I dropped the ball on this one back in July, so here's an attempt to
revive this thread.

I spent some time fixing the remaining issues with the prototype patch I
posted earlier, and rebased that on top of current git master. See attached.

Some review of that would be nice. If there are no major issues with it,
I'm going to create backpatchable versions of this for 9.4 and below.

- Heikki


Attachment

pgsql-hackers by date:

Previous
From: Andres Freund
Date:
Subject: Re: Raising the checkpoint_timeout limit
Next
From: Peter Geoghegan
Date:
Subject: Re: Raising the checkpoint_timeout limit