]> granicus.if.org Git - postgresql/commit
Fix test_session_hooks with parallel workers
authorMichael Paquier <michael@paquier.xyz>
Tue, 1 Oct 2019 06:19:32 +0000 (15:19 +0900)
committerMichael Paquier <michael@paquier.xyz>
Tue, 1 Oct 2019 06:25:04 +0000 (15:25 +0900)
commit002962dc7293043126561b0d0df79d6c76251804
tree535a74dbd8d5c1afb83ff1616d632cd8fde61ddb
parente788bd924c19e296bd34316e30e3ba1b68354e64
Fix test_session_hooks with parallel workers

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
src/test/modules/test_session_hooks/test_session_hooks.c