Re: Using condition variables to wait for checkpoints - Mailing list pgsql-hackers

From Thomas Munro
Subject Re: Using condition variables to wait for checkpoints
Date
Msg-id CA+hUKGJKbCd+_K+SEBsbHxVT60SG0ivWHHAdvL0bLTUt2xpA2w@mail.gmail.com
Whole thread Raw
In response to Re: Using condition variables to wait for checkpoints  (Thomas Munro <thomas.munro@gmail.com>)
List pgsql-hackers
On Thu, Mar 14, 2019 at 11:05 AM Thomas Munro <thomas.munro@gmail.com> wrote:
> I renamed the CVs because the names I had used before broke the
> convention that variables named ckpt_* are protected by ckpt_lck, and
> pushed.

Erm... this made successful checkpoints slightly faster but failed
checkpoints infinitely slower.  It would help if we woke up CV waiters
in the error path too.  Patch attached.

-- 
Thomas Munro
https://enterprisedb.com

Attachment

pgsql-hackers by date:

Previous
From: Michael Banck
Date:
Subject: Re: pg_rewind vs superuser
Next
From: GUO Rui
Date:
Subject: Re: Google Summer of Code: question about GiST API advancement project