pgsql: Fix test_session_hooks with parallel workers

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Fix test_session_hooks with parallel workers
Date: 2019-10-01 06:31:35
Message-ID: E1iFBh9-00026T-5z@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(+)

Browse pgsql-committers by date

  From Date Subject
Next Message Michael Paquier 2019-10-01 07:13:20 Re: pgsql: Add hooks for session start and session end, take two
Previous Message Michael Paquier 2019-10-01 05:25:43 Re: pgsql: Add hooks for session start and session end, take two