Re: WAL fsync scheduling - Mailing list pgsql-hackers

From Tom Lane
Subject Re: WAL fsync scheduling
Date
Msg-id 482.974524538@sss.pgh.pa.us
Whole thread Raw
In response to WAL fsync scheduling  (Bruce Momjian <pgman@candle.pha.pa.us>)
Responses Re: WAL fsync scheduling  (Bruce Momjian <pgman@candle.pha.pa.us>)
Re: WAL fsync scheduling  (Larry Rosenman <ler@lerctr.org>)
List pgsql-hackers
Bruce Momjian <pgman@candle.pha.pa.us> writes:
> Other backend will see they are not the lowest
> WAIT_ON_FSYNC and will wait for their byte to be set to NOT_IN_COMMIT
> so they can then continue, knowing their data was synced.

How will they wait?  Without a semaphore involved, your answer must
be either "timed sleep" or "busy-wait loop", neither of which is
attractive ...
        regards, tom lane


pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: RE: [COMMITTERS] pgsql/src/backend/access/transam ( xact.c xlog.c)
Next
From: Tom Lane
Date:
Subject: Re: AW: AW: Could turn on -O2 in AIX