| From: | Jeff Janes <jeff(dot)janes(at)gmail(dot)com> |
|---|---|
| To: | Bruce Momjian <bruce(at)momjian(dot)us> |
| Cc: | Peter Geoghegan <peter(at)2ndquadrant(dot)com>, Robert Haas <robertmhaas(at)gmail(dot)com>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org> |
| Subject: | Re: Draft release notes complete |
| Date: | 2012-05-14 19:29:19 |
| Message-ID: | CAMkU=1yv7se1dS8HB-B6sdp5jVGEuaRrCGQLbK7K2DPoM0ckWw@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
On Mon, May 14, 2012 at 9:56 AM, Jeff Janes <jeff(dot)janes(at)gmail(dot)com> wrote:
> On Mon, May 14, 2012 at 9:06 AM, Bruce Momjian <bruce(at)momjian(dot)us> wrote:
>
>> This is the git commit message:
>>
>> Make group commit more effective.
>>
>> When a backend needs to flush the WAL, and someone else is already flushing
>> the WAL, wait until it releases the WALInsertLock and check if we still need
>> to do the flush or if the other backend already did the work for us, before
>> acquiring WALInsertLock. This helps group commit, because when the WAL flush
>> finishes, all the backends that were waiting for it can be woken up in one
>> go, and the can all concurrently observe that they're done, rather than
>> waking them up one by one in a cascading fashion.
>>
>> This is based on a new LWLock function, LWLockWaitUntilFree(), which has
>> peculiar semantics. If the lock is immediately free, it grabs the lock and
>> returns true. If it's not free, it waits until it is released, but then
>> returns false without grabbing the lock. This is used in XLogFlush(), so
>> that when the lock is acquired, the backend flushes the WAL, but if it's
>> not, the backend first checks the current flush location before retrying.
>>
>> Original patch and benchmarking by Peter Geoghegan and Simon Riggs, although
>> this patch as committed ended up being very different from that.
>>
>> (Heikki Linnakangas)
>>
>> Is that commit message inaccurate?
>
> I think the commit message is accurate, other than saying
> WALInsertLock where it meant WALWriteLock.
Sorry, wrong number of negations. "I think the commit message is
accurate, other than"
Cheers,
Jeff
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Peter Eisentraut | 2012-05-14 19:56:41 | Re: Re: [COMMITTERS] pgsql: Ensure age() returns a stable value rather than the latest value |
| Previous Message | Peter Geoghegan | 2012-05-14 19:21:37 | Re: Draft release notes complete |