• Michael Paquier's avatar
    Fix test_session_hooks with parallel workers · 002962dc
    Michael Paquier authored
    Several buildfarm machines have been complaining about the new module
    test_session_hooks to be unstable, like crake and thorntail.  The issue
    was that the module was trying to log some start and end session
    activity for parallel workers, which makes little sense as they don't
    support DML, so just prevent this pattern to happen in the module.
    
    This could be reproduced by enforcing force_parallel_mode=regress, which
    is the value used by some of the buildfarm members.
    
    Discussion: https://postgr.es/m/20191001045246.GF2781@paquier.xyz
    002962dc
test_session_hooks.c 3.48 KB