Re: CheckpointStartLock starvation - Mailing list pgsql-hackers

From Tom Lane
Subject Re: CheckpointStartLock starvation
Date
Msg-id 26934.1175543164@sss.pgh.pa.us
Whole thread Raw
In response to CheckpointStartLock starvation  (Heikki Linnakangas <heikki@enterprisedb.com>)
Responses Re: CheckpointStartLock starvation
List pgsql-hackers
Heikki Linnakangas <heikki@enterprisedb.com> writes:
> As a proposed fix, instead of acquiring the CheckpointStartLock in 
> RecordTransactionCommit, we set a flag in MyProc saying "commit in 
> progress". Checkpoint will scan through the procarray and make note of 
> any commit in progress transactions, after computing the new redo record 
> ptr, and wait for all of them to finish before flushing clog.

What sort of "wait for finish" mechanism do you have in mind?  While
I've always thought CheckpointStartLock is a pretty ugly solution,
I'm not sure the above is better.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: Is this portable?
Next
From: Zdenek Kotala
Date:
Subject: Re: Is this portable?