• Magnus Hagander's avatar
    Prevent non-streaming replication connections from being selected sync slave · 3595a71e
    Magnus Hagander authored
    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
    3595a71e
syncrep.c 20.1 KB