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 1gy0GY-0007Me-Av for pgsql-performance@arkaria.postgresql.org; Sun, 24 Feb 2019 20:20:50 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gy0GW-0005Ku-IL for pgsql-performance@arkaria.postgresql.org; Sun, 24 Feb 2019 20:20:48 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gy0GV-0005KP-VJ for pgsql-performance@lists.postgresql.org; Sun, 24 Feb 2019 20:20:48 +0000 Received: from mail-io1-xd44.google.com ([2607:f8b0:4864:20::d44]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gy0GO-0008Gi-Ul for pgsql-performance@postgresql.org; Sun, 24 Feb 2019 20:20:46 +0000 Received: by mail-io1-xd44.google.com with SMTP id x3so5894597ior.6 for ; Sun, 24 Feb 2019 12:20:40 -0800 (PST) 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:references:mime-version :content-disposition:in-reply-to:user-agent; bh=0apFPxgG4HXOzPaAieGHlPGxsvfkRamrGwhpJTTMSbg=; b=A6mTDk55mOBLMH31yTohLQ3246lV67E2YH90bF6XolXHKA39km9Q+DdzjzpFkczweh bm7/aBrTh6iK+QPDg2txFsZTn+GH3uvKFAIqmVIWHRpYiJ2gIb7omnlCtXYFMuqPWrGQ BKgyxSCL0teWmt4m8AVZBxiRPdrRX7Y3KCxI6qP2ljVoboIeG7iXMSWdLOMErLz4X57h qPsUh/vPTg4JaFncV9Nh5WSpMWTGz2xhAO55Vii6UwFV6SbT8xY/T65heNGAxcwmcjJi 79lHbB6CIqCubHyINMPe4zWXtVWA4oeeJZJn6M746X+uhtlpaDI5YldOuN2jR/PIeiZo +XcQ== 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:references :mime-version:content-disposition:in-reply-to:user-agent; bh=0apFPxgG4HXOzPaAieGHlPGxsvfkRamrGwhpJTTMSbg=; b=sENXb+axxDevJ/ZS2XbSxNVP+jK7MGfvTAN4B6Xcp0/iQAsNCO1OB/cdV23zSE9uQD /Hvx1Qs6+ONKgmzsZOMquCp1Aw621g32rReo7FD+DAyEnXJ4nwD9nUyooD71pbHAClHK kAVe+TQkJj6CSTE0Nh4NYdqZogOpsgoJqu7vbIqDyHcK+r/4Oy+3naOCnyaHC9wt9Lhh 0yfRgnSohHHDr20PimwXQNhNPmuRpnU0SHS+Vn1CiLl8aG/LseGG8P9KhSImHzmynUTQ dSFmzCBDVC2YVIWnZvBiC1TEgJYkUHIorrqQrf29Y71OF+c5mJLvvRWBxPHRiVKMWlYM u8QQ== X-Gm-Message-State: AHQUAuY0DJuL2+OCEoXg7L3zJQ7e6tY5YgDwUFFsCIE+eK97YctK2RP4 9vf3vpaTznN1GANEq543WqVRQZci7So= X-Google-Smtp-Source: AHgI3IZXaePHzDF4xQTC8gBbLV9ltimEVbielT/CxuPqBW5HpGvBIixbxgPunojq9O0MhF+15Nio2w== X-Received: by 2002:a5d:834a:: with SMTP id q10mr7325090ior.271.1551039639967; Sun, 24 Feb 2019 12:20:39 -0800 (PST) Received: from pryzbyj (charmander.telsasoft.com. [50.244.222.1]) by smtp.gmail.com with ESMTPSA id c5sm3079451ioa.28.2019.02.24.12.20.38 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 24 Feb 2019 12:20:38 -0800 (PST) Received: by pryzbyj (Postfix, from userid 1000) id B7153800C83; Sun, 24 Feb 2019 14:20:37 -0600 (CST) Date: Sun, 24 Feb 2019 14:20:37 -0600 From: Justin Pryzby To: Gunther Cc: pgsql-performance@postgresql.org Subject: Re: Massive parallel queue table causes index deterioration, but REINDEX fails with deadlocks. Message-ID: <20190224202037.GK28750@telsasoft.com> References: <33bae6e3-1c5a-77f0-ee99-408fbf0fbb83@gusw.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Sun, Feb 24, 2019 at 12:45:34PM -0500, Gunther wrote: > What I am most puzzled by is that no matter how long I wait, the DROP INDEX > CONCURRENTLY never completes. Why is that? https://www.postgresql.org/docs/11/sql-dropindex.html CONCURRENTLY [...] With this option, the command instead waits until conflicting transactions have completed. Do you have a longrunning txn ? That's possibly the cause of the original issue; vacuum cannot mark tuples as dead until txns have finished. > I consider this ultimately a bug, or at the very least there is room for > improvement. And I am on version 11.1. Did you try upgrading to 11.2 ? I suspect this doesn't affect the query plan..but may be relevant? https://www.postgresql.org/docs/11/release-11-2.html |Improve ANALYZE's handling of concurrently-updated rows (Jeff Janes, Tom Lane) | |Previously, rows deleted by an in-progress transaction were omitted from ANALYZE's sample, but this has been found to lead to more inconsistency than including them would do. In effect, the sample now corresponds to an MVCC snapshot as of ANALYZE's start time. Justin