pgsql: Prevent non-streaming replication connections from being selecte - Mailing list pgsql-committers

From Magnus Hagander
Subject pgsql: Prevent non-streaming replication connections from being selecte
Date
Msg-id E1Se4Wf-0002nN-3j@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Prevent non-streaming replication connections from being selected sync slave

This prevents a pg_basebackup backup session that just does a base
backup (no xlog involved at all) from becoming the synchronous slave
and thus blocking all access while it runs.

Also fixes the problem when a higher priority slave shows up it would
become the sync standby before it has reached the STREAMING state, by
making sure we can only switch to a walsender that's actually STREAMING.

Fujii Masao

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/3595a71e9ce90a2d4c812a9bb34dc24ffc492c2b

Modified Files
--------------
src/backend/replication/syncrep.c |    1 +
1 files changed, 1 insertions(+), 0 deletions(-)


pgsql-committers by date:

Previous
From: Magnus Hagander
Date:
Subject: pgsql: Revert behaviour of -x/--xlog to 9.1 semantics
Next
From: Magnus Hagander
Date:
Subject: pgsql: Prevent non-streaming replication connections from being selecte