]> granicus.if.org Git - postgresql/commit
Use the regular main processing loop also in walsenders.
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Fri, 5 Oct 2012 14:13:07 +0000 (17:13 +0300)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Fri, 5 Oct 2012 14:21:12 +0000 (17:21 +0300)
commitfd5942c18f977a36fec66a8d1281092805f2a55e
tree722501422b9f52f412729096be8f49688212474c
parent1997f34db4687e671690ed054c8f30bb501b1168
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.
src/backend/replication/basebackup.c
src/backend/replication/walsender.c
src/backend/tcop/postgres.c
src/include/replication/walsender.h