Re: Async Commit, v21 (now: v22) - Mailing list pgsql-patches

From Heikki Linnakangas
Subject Re: Async Commit, v21 (now: v22)
Date
Msg-id 469E3567.8050904@enterprisedb.com
Whole thread Raw
In response to Re: Async Commit, v21 (now: v22)  ("Simon Riggs" <simon@2ndquadrant.com>)
Responses Re: Async Commit, v21 (now: v22)
List pgsql-patches
Simon Riggs wrote:
> Here's the latest version. I've reviewed this to check that this does
> what I want it to do, re-written various comments and changed a few
> minor points in the code.
>
> I've also added a chunk to transam/README that describes the workings of
> the patch from a high level.
>
> Now ready for final review.

Just a couple of quick comments:

Having to call XLogBackgroundFlush(2) to flush the WAL up to the latest
async commit is a weird interface. How about passing a "bool force"
argument instead? Or adding another function "XLogFlushCommits".

walwriter.h is missing the

#ifndef XXXX_H
#define XXXX_H

boilerplate.

--
  Heikki Linnakangas
  EnterpriseDB   http://www.enterprisedb.com

pgsql-patches by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: execl() sentinel
Next
From: "Simon Riggs"
Date:
Subject: Re: Async Commit, v21 (now: v22)