pgsql: Use the regular main processing loop also in walsenders. - Mailing list pgsql-committers

From Heikki Linnakangas
Subject pgsql: Use the regular main processing loop also in walsenders.
Date
Msg-id E1TK8qt-0003AK-7Q@gemulon.postgresql.org
Whole thread Raw
Responses Re: pgsql: Use the regular main processing loop also in walsenders.
List 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(-)


pgsql-committers by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: pgsql: Disable _FORTIFY_SOURCE with ICC
Next
From: Michael Meskes
Date:
Subject: pgsql: Fixed test for array boundary.