pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alvaro Herrera <alvherre@alvh.no-ip.org>
To: Jeremy Finzel <finzelj@gmail.com>
Cc: Jeff Janes <jeff.janes@gmail.com>
Cc: Postgres General <pgsql-general@postgresql.org>
Subject: Re: Deadlock between concurrent index builds on different tables
Date: Tue, 26 Dec 2017 13:28:34 -0300
Message-ID: <20171226162834.dknphdfc56owiai5@alvherre.pgsql> (raw)
In-Reply-To: <CAMa1XUg52fT1KrF9pWAa4rKWTpXjp__AAVQLY6wF24s=tRtVSQ@mail.gmail.com>

Jeremy Finzel wrote:
> >
> >
> >> Each index build needs to wait for all other transactions
> >> (Including the ones used by the other index build) to finish.
> >> So I don't think a deadlock here is unexpected.

> Does that mean I should never build more than one concurrent index at
> a time within the entire cluster? If so, that is not clear from the
> documentation.

No, there is no such expectation.  Jeff analyzed your scenario,
discovered a bug and sent a patch to fix it -- care to test it and
report back?  You can get it from here:

https://www.postgresql.org/message-id/CAMkU=1ztk3TpQdcUNbxq93pc80FrXUjpDWLGMeVBDx71GHNwZQ@mail.gmail...

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




view thread (15+ messages)  latest in thread

Message-ID: <20171226162834.dknphdfc56owiai5@alvherre.pgsql>
Permalink:  ../20171226162834.dknphdfc56owiai5@alvherre.pgsql/
Also on:    postgresql.org/message-id/20171226162834.dknphdfc56owiai5@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-general@postgresql.org
  Cc: alvherre@alvh.no-ip.org, finzelj@gmail.com, jeff.janes@gmail.com
  Subject: Re: Deadlock between concurrent index builds on different tables
  In-Reply-To: <20171226162834.dknphdfc56owiai5@alvherre.pgsql>
  References: <CAMa1XUg52fT1KrF9pWAa4rKWTpXjp__AAVQLY6wF24s=tRtVSQ@mail.gmail.com> <20171226162834.dknphdfc56owiai5@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