Skip site navigation (1) Skip section navigation (2)

pgsql: Make walsender more responsive.

From: Robert Haas <rhaas(at)postgresql(dot)org>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Make walsender more responsive.
Date: 2012-07-02 13:49:27
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-committerspgsql-hackers
Make walsender more responsive.

Per testing by Andres Freund, this improves replication performance
and reduces replication latency and latency jitter.  I was a bit
concerned about moving more work into XLogInsert, but testing seems
to show that it's not a problem in practice.

Along the way, improve comments for WaitLatchOrSocket.

Andres Freund.  Review and stylistic cleanup by me.



Modified Files
src/backend/access/transam/twophase.c |   21 ---------------------
src/backend/access/transam/xact.c     |    7 -------
src/backend/access/transam/xlog.c     |   25 ++++++++++++++++++-------
src/backend/port/unix_latch.c         |    3 +++
src/backend/port/win32_latch.c        |    4 ++++
src/backend/replication/walsender.c   |   11 ++++++++++-
src/include/replication/walsender.h   |   24 ++++++++++++++++++++++++
7 files changed, 59 insertions(+), 36 deletions(-)


pgsql-hackers by date

Next:From: Robert HaasDate: 2012-07-02 13:51:08
Subject: Re: [PATCH 01/16] Overhaul walsender wakeup handling
Previous:From: Nils GorollDate: 2012-07-02 13:02:48
Subject: Re: Update on the spinlock->pthread_mutex patch experimental: replace s_lock spinlock code with pthread_mutex on linux

pgsql-committers by date

Next:From: Robert HaasDate: 2012-07-02 14:31:15
Subject: pgsql: Make commit_delay much smarter.
Previous:From: Tom LaneDate: 2012-07-01 21:13:19
Subject: pgsql: Fix race condition in enum value comparisons.

Privacy Policy | About PostgreSQL
Copyright © 1996-2018 The PostgreSQL Global Development Group