pgsql: Error out on send failure in walsender loop.

From: Heikki Linnakangas <heikki(dot)linnakangas(at)iki(dot)fi>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Error out on send failure in walsender loop.
Date: 2014-03-04 13:43:58
Message-ID: E1WKpdW-0001uB-DH@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Error out on send failure in walsender loop.

I changed the loop in 9.3 to use "goto send_failure" instead of "break" on
errors, but I missed this one case. It was a relatively harmless bug: if
the flush fails once it will most likely fail again as soon as we try to
flush the output again. But it's a bug nevertheless.

Report and fix by Andres Freund.

Branch
------
REL9_3_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/38587d7d286faeec83bdbb89ff34eeee5eabb23e

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

Browse pgsql-committers by date

  From Date Subject
Next Message Robert Haas 2014-03-04 16:14:07 pgsql: Allow VACUUM FULL/CLUSTER to bump freeze horizons even for pg_cl
Previous Message Robert Haas 2014-03-03 21:46:44 pgsql: Introduce logical decoding.