[COMMITTERS] pgsql: Fix possibility of creating a "phantom" segment after promotion.

2017-06-21 Thread Andres Freund
Fix possibility of creating a "phantom" segment after promotion. When promoting a standby just after a XLOG_SWITCH record was replayed, and next segment(s) are already are locally available (via walsender, restore_command + trigger/recovery target), that segment could accidentally be recycled onto

[COMMITTERS] pgsql: Fix possibility of creating a "phantom" segment after promotion.

2017-06-21 Thread Andres Freund
Fix possibility of creating a "phantom" segment after promotion. When promoting a standby just after a XLOG_SWITCH record was replayed, and next segment(s) are already are locally available (via walsender, restore_command + trigger/recovery target), that segment could accidentally be recycled onto

[COMMITTERS] pgsql: Fix possibility of creating a "phantom" segment after promotion.

2017-06-21 Thread Andres Freund
Fix possibility of creating a "phantom" segment after promotion. When promoting a standby just after a XLOG_SWITCH record was replayed, and next segment(s) are already are locally available (via walsender, restore_command + trigger/recovery target), that segment could accidentally be recycled onto

[COMMITTERS] pgsql: Fix possibility of creating a "phantom" segment after promotion.

2017-06-21 Thread Andres Freund
Fix possibility of creating a "phantom" segment after promotion. When promoting a standby just after a XLOG_SWITCH record was replayed, and next segment(s) are already are locally available (via walsender, restore_command + trigger/recovery target), that segment could accidentally be recycled onto

[COMMITTERS] pgsql: Fix possibility of creating a "phantom" segment after promotion.

2017-06-21 Thread Andres Freund
Fix possibility of creating a "phantom" segment after promotion. When promoting a standby just after a XLOG_SWITCH record was replayed, and next segment(s) are already are locally available (via walsender, restore_command + trigger/recovery target), that segment could accidentally be recycled onto

[COMMITTERS] pgsql: Fix possibility of creating a "phantom" segment after promotion.

2017-06-21 Thread Andres Freund
Fix possibility of creating a "phantom" segment after promotion. When promoting a standby just after a XLOG_SWITCH record was replayed, and next segment(s) are already are locally available (via walsender, restore_command + trigger/recovery target), that segment could accidentally be recycled onto