pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alvaro Herrera <alvherre@alvh.no-ip.org>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Andres Freund <andres@anarazel.de>
Cc: Jeff Janes <jeff.janes@gmail.com>
Cc: pgsql-committers@postgresql.org
Subject: Re: pgsql: Fix deadlock hazard in CREATE INDEX CONCURRENTLY
Date: Wed, 3 Jan 2018 18:31:56 -0300
Message-ID: <20180103213156.s5havue6rmdskvra@alvherre.pgsql> (raw)
In-Reply-To: <23413.1515008794@sss.pgh.pa.us>

Tom Lane wrote:

> No, I think that's probably a bad idea, because it would mean that in
> cases where you do care about the finishing order (which is all of
> them up to now), the test output would fail to prove that you got the
> expected behavior.

Hmm .. I was thinking that we would check all the steps that are
unlocked when running a single one, so the only test that would be
affected would be deadlock-hard, which has this:

step s8a1: LOCK TABLE a1; <waiting ...>
step s8a1: <... completed>
step s7a8: <... completed>
error in steps s8a1 s7a8: ERROR:  deadlock detected

TBH I'm surprised that this is never reported in the other order but
that this doesn't hold for the new test, but there you have it.

> At this point I'm on board with using an alternate expected file.
> We could revert the test back to your original version and make
> the pre-9.6 branches look the same, which would be good.

I reverted the test change, so the tests are now the same everywhere.  I
hadn't touched 9.4 and 9.5 previously.  The failures in 9.6-10-master
had been accumulating fast, and we didn't have a single failure in 9.4
and 9.5, so I'm hoping that this means the older branches just cannot
fail in this way.  But we shall see.

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




view thread (16+ messages)  latest in thread

Message-ID: <20180103213156.s5havue6rmdskvra@alvherre.pgsql>
Permalink:  ../20180103213156.s5havue6rmdskvra@alvherre.pgsql/
Also on:    postgresql.org/message-id/20180103213156.s5havue6rmdskvra@alvherre.pgsql

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: alvherre@alvh.no-ip.org, tgl@sss.pgh.pa.us, andres@anarazel.de, jeff.janes@gmail.com
  Subject: Re: pgsql: Fix deadlock hazard in CREATE INDEX CONCURRENTLY
  In-Reply-To: <20180103213156.s5havue6rmdskvra@alvherre.pgsql>
  References: <23413.1515008794@sss.pgh.pa.us> <20180103213156.s5havue6rmdskvra@alvherre.pgsql>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox