Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iJU0C-0004sP-Bt for pgsql-hackers@arkaria.postgresql.org; Sun, 13 Oct 2019 02:53:00 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iJTzC-0008Fr-8m for pgsql-hackers@arkaria.postgresql.org; Sun, 13 Oct 2019 02:51:58 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iJTzB-0008FY-Qz for pgsql-hackers@lists.postgresql.org; Sun, 13 Oct 2019 02:51:58 +0000 Received: from mail-io1-xd44.google.com ([2607:f8b0:4864:20::d44]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iJTz4-0008N2-3E for pgsql-hackers@lists.postgresql.org; Sun, 13 Oct 2019 02:51:56 +0000 Received: by mail-io1-xd44.google.com with SMTP id c6so29610894ioo.13 for ; Sat, 12 Oct 2019 19:51:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telsasoft-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :user-agent; bh=WRXHhbhgyoDzOe5Eb6fuepfd0fK0frAFsatz/dlaEoE=; b=Z76DkS78h2Inu4pwp6ojBkvQ1BdN1OTWgpQEk5sT8RYD1KP75eXWbw6qgB6LRmkv2k pMz+fUFf4YdRTDtYFynI07M1cBD+afCKRSj4Yh/lZ2ON9q2LtMvMIiDkhaY9BoPuZvHp WywixU3zgw7NcBRwjAX0FD/j/GJwXqvX9zYh//MzHr7uC/pMe2UVAb0cV8CDpE50w8Ef Cb9UTJco7FHC2I6E71ic1q8LBwRe7W8tAoHKNk3td4nSYi6lYiGq3wXSUbNUsp6zECJf Da1G+nuVL/GDM1wvcQJJosOl5oY5pE3rDeV50EuuJlFuNF02uDw6S4HLJ/x1WPCDe3v5 oJ3g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:user-agent; bh=WRXHhbhgyoDzOe5Eb6fuepfd0fK0frAFsatz/dlaEoE=; b=awvMcRALdQkWCk7qXOtnOHhGEdR5zomiHuBB/ep/eKZ3qqH3qVBHDBagBlqdB4FSo7 DHItepHgCeKYAcrP8hiVPddiYPehX3brs6E21VJHqxIriBu1ztLT+J/JHGedLDoJr0DZ Bb9XMlxbQutBI9O8b6ZdJXUmX0Z4qn54z00cWn8tcUlMgh7Db+hRSokiJ65QjkY/jNZ0 fIv7Lks8Ubidy9yfOQSri6s9CR/Q4nzAznjoZb2tl4g2mMRFUQC+bzTyYtI3YsTscuIp I4D9mGokf64sgGR21+40EHVhOuLT08f6C7+3IYSMEt61/Ap7KsmOl75oTE7GOosluNl2 oywA== X-Gm-Message-State: APjAAAUgUj40fIF34/9/My3P5jO5UxPw1e54emJFA2F8/pUuviHZqLLV HgMmoL31H84cilZZJo9UlB+ZAI0LEZw= X-Google-Smtp-Source: APXvYqxrSx/dBCQhueF6JvOdsNSpu/OzTYfRIKIQmqfjS7NCOquXlAtnpAvG9gTUprfN/CH7NeNDKQ== X-Received: by 2002:a6b:5104:: with SMTP id f4mr13405958iob.183.1570935107938; Sat, 12 Oct 2019 19:51:47 -0700 (PDT) Received: from pryzbyj (charmander.telsasoft.com. [50.244.222.1]) by smtp.gmail.com with ESMTPSA id i4sm9365837iop.6.2019.10.12.19.51.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 12 Oct 2019 19:51:47 -0700 (PDT) Received: by pryzbyj (Postfix, from userid 1000) id 00897801AA1; Sat, 12 Oct 2019 21:51:45 -0500 (CDT) Date: Sat, 12 Oct 2019 21:51:45 -0500 From: Justin Pryzby To: pgsql-hackers@lists.postgresql.org Cc: Michael Paquier , Peter Eisentraut , Andreas Karlsson Subject: v12.0: reindex CONCURRENTLY: lock ShareUpdateExclusiveLock on object 14185/39327/0 is already held Message-ID: <20191013025145.GC4475@telsasoft.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.24 (2015-08-30) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk I ran into this while trying to trigger the previously-reported segfault. CREATE TABLE t(i) AS SELECT * FROM generate_series(1,9); CREATE INDEX ON t(i); [pryzbyj@database ~]$ for i in `seq 1 9`; do PGOPTIONS='-cstatement_timeout=9' psql postgres --host /tmp --port 5678 -c "REINDEX INDEX CONCURRENTLY t_i_idx" ; done ERROR: canceling statement due to statement timeout ERROR: lock ShareUpdateExclusiveLock on object 14185/47287/0 is already held [...] Variations on this seem to leave the locks table (?) or something else in a Real Bad state, such that I cannot truncate the table or drop it; or at least commands are unreasonably delayed for minutes, on this otherwise-empty test cluster. Justin