Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kCv81-00011m-LB for pgsql-bugs@arkaria.postgresql.org; Tue, 01 Sep 2020 01:30:29 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kCv80-0006CQ-Iw for pgsql-bugs@arkaria.postgresql.org; Tue, 01 Sep 2020 01:30:28 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kCv80-0006CJ-CY for pgsql-bugs@lists.postgresql.org; Tue, 01 Sep 2020 01:30:28 +0000 Received: from mail-qk1-x744.google.com ([2607:f8b0:4864:20::744]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1kCv7x-0007eA-Tj for pgsql-bugs@lists.postgresql.org; Tue, 01 Sep 2020 01:30:27 +0000 Received: by mail-qk1-x744.google.com with SMTP id u3so8069695qkd.9 for ; Mon, 31 Aug 2020 18:30:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=EB4gS1XIb9xCT6wyLZpBvamQUumOP4NF4hYcN7eEWEo=; b=llMFopEGJwGm1stfE+PcvMWcycmChkxXaVUGWqwYolq93dyi4TuGdSJ+XGBp+C/SkP ydn/1C7o+CeNBSwc9bA1j8S6N7ffhksWdeEearS5j4yRdrvSp0Jrj583zWdNxZTCnwoA b1Ans6dypWOb1fUws4jLG4tRJlb15/hz10di/Fk1COyjJ1aIrF29aID4636PmXb7oXXw z06ymEu8kZG6sgXDfETBvT0+de7K93vDujwNYVmkntZ93A4PhtcQhpe9fSSGCMNIAcwW FwOFk18Jm9CGVw6mLTC6iFhJq/H6nMGapw/gOFDGfZIDIK47mFBM0MaYdocSe90woqlh YmvA== 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:content-transfer-encoding:in-reply-to :user-agent; bh=EB4gS1XIb9xCT6wyLZpBvamQUumOP4NF4hYcN7eEWEo=; b=g5PiIPpHzajc+7sI0hyBrdMdogFLvqgUiMM3uEDAoX4BYRUCRyLc4Mtu0RYuf/amyu ShTtRrFP09VtBaLK6Ui9rb3vPGtsPVBe6j8A18n4966J6IOJ3OYta2DKeR9l8H6GDtzt a7mfqh6D6N+8g2cX13nY1+BGxLQZwSQSttvjMs+/zsRZhHIJioPvgQmq+s/KXSTiWlvx VO/xrjF6DFlhdy5OfwL7C9c59WAzI+oZBGbFypwNEXI/yjjfwsB3pSvh20kw1uE8yr2r ReXUdzWPFDgvsJj4ilAtnfZvE8t36uyUCorztirM8JKaDp1SslfJ2VWLdEEpm6KqI5C3 IKZw== X-Gm-Message-State: AOAM533Hup0XuMA3t/8ID8SmN7tKvYQOMcKIeGPaCUomYLU+Z0FPIT1p 4MmtsNWB2ec1eStocdarsAyvCDpEQjsiFcgciaz4JjoUmJnxTdgHNckWLzYelcUg3U2Vju12syW 4yk4y4OvKgLFBPE7NyK3g0W1srEau3T57ttZyKjlbXqwA6vwW7DRxyrzOkmhN1Th/VCCtU76B9Y BdR6LuZvkfDtFgG4o= X-Google-Smtp-Source: ABdhPJy6fvPxuZifjJHGcVC9n3bzqGUjjoDAt+mzm6I1OAC3VeuQIbx4+WzTcTpImzSdvzLR+e7BXw== X-Received: by 2002:a05:620a:546:: with SMTP id o6mr3894441qko.296.1598923824119; Mon, 31 Aug 2020 18:30:24 -0700 (PDT) Received: from perhan.alvh.no-ip.org ([190.95.19.47]) by smtp.gmail.com with ESMTPSA id y10sm11061757qkf.47.2020.08.31.18.30.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 31 Aug 2020 18:30:23 -0700 (PDT) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id 783292A0EF6; Mon, 31 Aug 2020 21:30:21 -0400 (-04) Date: Mon, 31 Aug 2020 21:30:21 -0400 From: Alvaro Herrera To: Michael Paquier Cc: jan.mussler@zalando.de, pgsql-bugs@lists.postgresql.org Subject: Re: BUG #16594: DROP INDEX CONCURRENTLY fails on partitioned table with a non helpful error message. Message-ID: <20200901013021.GA24136@alvherre.pgsql> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="9jxsPFA5p3P2qPhR" Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20200901012553.GA17180@alvherre.pgsql> User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --9jxsPFA5p3P2qPhR Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit Oh, and this: -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services --9jxsPFA5p3P2qPhR Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="docs.patch" diff --git a/doc/src/sgml/ref/drop_index.sgml b/doc/src/sgml/ref/drop_index.sgml index 0aedd71bd6..85cf23bca2 100644 --- a/doc/src/sgml/ref/drop_index.sgml +++ b/doc/src/sgml/ref/drop_index.sgml @@ -52,16 +52,18 @@ DROP INDEX [ CONCURRENTLY ] [ IF EXISTS ] name There are several caveats to be aware of when using this option. Only one index name can be specified, and the CASCADE option is not supported. (Thus, an index that supports a UNIQUE or PRIMARY KEY constraint cannot be dropped this way.) Also, regular DROP INDEX commands can be performed within a transaction block, but DROP INDEX CONCURRENTLY cannot. + Lastly, indexes on partitioned tables cannot be dropped using this + option. For temporary tables, DROP INDEX is always non-concurrent, as no other session can access them, and non-concurrent index drop is cheaper. --9jxsPFA5p3P2qPhR--