Skip to content
Snippets Groups Projects
Select Git revision
  • benchmark-tools
  • postgres-lambda
  • master default
  • REL9_4_25
  • REL9_5_20
  • REL9_6_16
  • REL_10_11
  • REL_11_6
  • REL_12_1
  • REL_12_0
  • REL_12_RC1
  • REL_12_BETA4
  • REL9_4_24
  • REL9_5_19
  • REL9_6_15
  • REL_10_10
  • REL_11_5
  • REL_12_BETA3
  • REL9_4_23
  • REL9_5_18
  • REL9_6_14
  • REL_10_9
  • REL_11_4
23 results

postgres-lambda-diff

  • Clone with SSH
  • Clone with HTTPS
  • user avatar
    Fujii Masao authored
    Previously even if postmaster died and WaitLatch() woke up with that event
    while pg_promote() was waiting for the standby promotion to finish,
    pg_promote() did nothing special and kept waiting until timeout occurred.
    This could cause a busy loop.
    
    This patch make pg_promote() return false immediately when postmaster
    dies, to avoid such a busy loop.
    
    Back-patch to v12 where pg_promote() was added.
    
    Author: Fujii Masao
    Reviewed-by: Michael Paquier
    Discussion: https://postgr.es/m/CAHGQGwEs9ROgSp+QF+YdDU+xP8W=CY1k-_Ov-d_Z3JY+to3eXA@mail.gmail.com
    7aa815a7
    History
    Name Last commit Last update