pgsql: Fix isolation test to be less timing-dependent

From: Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix isolation test to be less timing-dependent
Date: 2018-01-03 15:09:21
Message-ID: E1eWkfR-0007wz-2N@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Fix isolation test to be less timing-dependent

I did this by adding another locking process, which makes the other two
wait. This way the output should be stable enough.

Per buildfarm and Andres Freund
Discussion: https://postgr.es/m/20180103034445.t3utrtrnrevfsghm@alap3.anarazel.de

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/2268e6afd59649d6bf6d114a19e9c492d59b43fc

Modified Files
--------------
src/test/isolation/expected/multiple-cic.out | 17 +++++++++++------
src/test/isolation/specs/multiple-cic.spec | 12 ++++++++----
2 files changed, 19 insertions(+), 10 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Alvaro Herrera 2018-01-03 15:09:56 Re: pgsql: Fix deadlock hazard in CREATE INDEX CONCURRENTLY
Previous Message Tom Lane 2018-01-03 14:53:31 Re: pgsql: Fix deadlock hazard in CREATE INDEX CONCURRENTLY