OSDN Git Service

In walsender, don't sleep if there's outstanding WAL waiting to be sent,
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Wed, 26 May 2010 22:21:33 +0000 (22:21 +0000)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Wed, 26 May 2010 22:21:33 +0000 (22:21 +0000)
commitea5516081dcbdc146ae0b3314a88cda2c48b0ca5
tree990a79811e685ed83beece6ed8ad7035ec4d5202
parent4ed4b6c54e5fab24ab2624d80e26f7546edc88ad
In walsender, don't sleep if there's outstanding WAL waiting to be sent,
otherwise we effectively rate-limit the streaming as pointed out by
Simon Riggs. Also, send the WAL in smaller chunks, to respond to signals
more promptly.
src/backend/replication/walsender.c