why can the isolation tester handle only one waiting process?

From: Robert Haas <robertmhaas(at)gmail(dot)com>
To: "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>
Subject: why can the isolation tester handle only one waiting process?
Date: 2015-08-14 13:33:40
Message-ID: CA+TgmobY-tm5ZVfenuiH_PHiqZYJwGfojgGDVZGL2S1AiiVz0g@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

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?)

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Alexander Korotkov 2015-08-14 13:53:02 Re: RFC: replace pg_stat_activity.waiting with something more descriptive
Previous Message Andrew Dunstan 2015-08-14 13:32:57 Re: buildfarm does not test "make check"