Re: WAL fsync scheduling - Mailing list pgsql-hackers

From Larry Rosenman
Subject Re: WAL fsync scheduling
Date
Msg-id 20001118093649.A6714@lerami.lerctr.org
Whole thread Raw
In response to Re: WAL fsync scheduling  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: WAL fsync scheduling  (Bruce Momjian <pgman@candle.pha.pa.us>)
Re: WAL fsync scheduling  (Peter Eisentraut <peter_e@gmx.net>)
List pgsql-hackers
* Tom Lane <tgl@sss.pgh.pa.us> [001117 23:21]:
> 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 ...
how about sigpause, and using SIGUSR1/SIGUSR2 to wake them up ? 

> 
>             regards, tom lane
-- 
Larry Rosenman                      http://www.lerctr.org/~ler
Phone: +1 972-414-9812 (voice) Internet: ler@lerctr.org
US Mail: 1905 Steamboat Springs Drive, Garland, TX 75044-6749


pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: location of Unix socket
Next
From: Bruce Momjian
Date:
Subject: Re: WAL fsync scheduling