pgsql: Fix bug that can cause walsender not to terminating at shutdown.

From: Andres Freund <andres(at)anarazel(dot)de>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix bug that can cause walsender not to terminating at shutdown.
Date: 2017-08-24 22:22:14
Message-ID: E1dl0Vy-00072t-O3@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers pgsql-hackers

Fix bug that can cause walsender not to terminating at shutdown.

When backpatching c6c333436 I (Andres Freund) mis-resolved a conflict
in the 9.4 branch. Unfortunately that leads to walsenders waiting
forever when shutting down with connected standbys, unless immediate
mode is used, or the standbys are forced to disconnect by other means.

Author: Marco Nenciarini
Reported-By: Abhijit Gharami, Marco Nenciarini
Discussion:
http://postgr.es/m/1434ad79-ab0d-d6a9-4ea2-1afb1c06adaf@2ndquadrant.it
http://postgr.es/m/CAA5_DuD0O1XyM8OnOzhRepyPU-t8nZKLzs1pT2JpzP0NS+vVNA@mail.gmail.com
Backpatch: 9.4 only

Branch
------
REL9_4_STABLE

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

Modified Files
--------------
src/backend/replication/walsender.c | 1 +
1 file changed, 1 insertion(+)

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message Andres Freund 2017-08-25 00:52:52 pgsql: Consolidate the function pointer types used by dshash.c.
Previous Message Andres Freund 2017-08-24 22:22:13 pgsql: Fix harmless thinko in dsa.c.

Browse pgsql-hackers by date

  From Date Subject
Next Message Andres Freund 2017-08-24 22:22:35 Re: Regression stoping PostgreSQL 9.4.13 if a walsender is running
Previous Message Tom Lane 2017-08-24 21:32:20 Re: taking stdbool.h into use