[COMMITTERS] pgsql: Fix walsender to exit promptly if client requests shutdown.

Поиск
Список
Период
Сортировка
От Tom Lane
Тема [COMMITTERS] pgsql: Fix walsender to exit promptly if client requests shutdown.
Дата
Msg-id E1dQyLM-0002Y9-3w@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Fix walsender to exit promptly if client requests shutdown.

It's possible for WalSndWaitForWal to be asked to wait for WAL that doesn't
exist yet.  That's fine, in fact it's the normal situation if we're caught
up; but when the client requests shutdown we should not keep waiting.
The previous coding could wait indefinitely if the source server was idle.

In passing, improve the rather weak comments in this area, and slightly
rearrange some related code for better readability.

Back-patch to 9.4 where this code was introduced.

Discussion: https://postgr.es/m/14154.1498781234@sss.pgh.pa.us

Branch
------
REL9_6_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/e9d4aa594f2caa8c28d55c41c9926420b1efdb79

Modified Files
--------------
src/backend/replication/walsender.c | 48 ++++++++++++++++++++++++-------------
1 file changed, 31 insertions(+), 17 deletions(-)


В списке pgsql-committers по дате отправления:

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: [COMMITTERS] pgsql: Prohibit creating ICU collation with different ctype
Следующее
От: Tom Lane
Дата:
Сообщение: [COMMITTERS] pgsql: Check for error during PQendcopy.