Re: why can the isolation tester handle only one waiting process?

From: Alvaro Herrera <alvherre(at)2ndquadrant(dot)com>
To: Robert Haas <robertmhaas(at)gmail(dot)com>
Cc: "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: why can the isolation tester handle only one waiting process?
Date: 2015-08-14 14:14:22
Message-ID: 20150814141422.GJ5232@alvherre.pgsql
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Robert Haas wrote:
> I had the idea that it would be useful to have some regression tests
> that verify that the deadlock checker works as advertised, because we
> currently have just about zero test coverage for it. And it's easy
> enough to write a regression test that causes a simple 2-way deadlock.
> But you can't test anything more interesting than that, because of
> this limitation described in the README:
>
> > Currently, at most one step can be waiting at a time. As long as one
> > step is waiting, subsequent steps are run to completion synchronously.
>
> Is there any reason not to try to lift that restriction? (And do we
> think it's hard?)

It's just what we needed at the time, so we didn't press any further.
Feel free to lift the restriction if you're so inclined.

--
Álvaro Herrera http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Andres Freund 2015-08-14 16:27:42 Re: Configure checks and optimizations/crc32 tests
Previous Message Tom Lane 2015-08-14 14:11:34 Re: RFC: replace pg_stat_activity.waiting with something more descriptive