pgsql: Fix test_session_hooks with parallel workers - Mailing list pgsql-committers

From Michael Paquier
Subject pgsql: Fix test_session_hooks with parallel workers
Date
Msg-id E1iFBh9-00026T-5z@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/002962dc7293043126561b0d0df79d6c76251804

Modified Files
--------------
src/test/modules/test_session_hooks/test_session_hooks.c | 9 +++++++++
1 file changed, 9 insertions(+)


pgsql-committers by date:

Previous
From: Michael Paquier
Date:
Subject: Re: pgsql: Add hooks for session start and session end, take two
Next
From: Michael Paquier
Date:
Subject: Re: pgsql: Add hooks for session start and session end, take two