pgsql: Use the regular main processing loop also in walsenders.

From: Heikki Linnakangas <heikki(dot)linnakangas(at)iki(dot)fi>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Use the regular main processing loop also in walsenders.
Date: 2012-10-05 14:26:07
Message-ID: E1TK8qt-0003AK-7Q@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Use the regular main processing loop also in walsenders.

The regular backend's main loop handles signal handling and error recovery
better than the current WAL sender command loop does. For example, if the
client hangs and a SIGTERM is received before starting streaming, the
walsender will now terminate immediately, rather than hang until the
connection times out.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/fd5942c18f977a36fec66a8d1281092805f2a55e

Modified Files
--------------
src/backend/replication/basebackup.c | 16 +--
src/backend/replication/walsender.c | 269 ++++++++--------------------------
src/backend/tcop/postgres.c | 51 ++++++-
src/include/replication/walsender.h | 5 +-
4 files changed, 109 insertions(+), 232 deletions(-)

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message Michael Meskes 2012-10-05 15:08:42 pgsql: Fixed test for array boundary.
Previous Message Tom Lane 2012-10-05 03:37:58 Re: [COMMITTERS] pgsql: Disable _FORTIFY_SOURCE with ICC