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 1kDAKP-0004Oo-Kv for pgsql-bugs@arkaria.postgresql.org; Tue, 01 Sep 2020 17:44:17 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kDAKO-0008J4-GK for pgsql-bugs@arkaria.postgresql.org; Tue, 01 Sep 2020 17:44:16 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kDAKO-0008Iw-5D for pgsql-bugs@lists.postgresql.org; Tue, 01 Sep 2020 17:44:16 +0000 Received: from mail-qt1-x843.google.com ([2607:f8b0:4864:20::843]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1kDAKK-00026B-Sa for pgsql-bugs@lists.postgresql.org; Tue, 01 Sep 2020 17:44:14 +0000 Received: by mail-qt1-x843.google.com with SMTP id n18so1576171qtw.0 for ; Tue, 01 Sep 2020 10:44:12 -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=iouhVsgRuFcCN5tAm6GvWTtpz0fAS5b3+uWNyAatfYg=; b=TJlhoFhw/tZT/mJghun3esEEXpJsYLuZiMlV6teD7QzyAfasvEflZRyrFbf7f2SSrX PFXDnQf6YmOq9P/2CyiYALvJiZHWr52lN4AQCkpjMIq0+LYUhiLo6JQITtLcF+GQdAeU 72cEcOINS+PULkZhFjfLHRTIZQ/RblC6eEqjLwNJCoN9CNAalZeye5iE+0zLLn9d9Kug Zz3xJMcYNr+XYAWWE1ZOZzNF70arGKKwJjWywdMiMkjpgQBdQrFXNIG5BxiaD5TBVVjR igip8alVnswfcIQ8vJSiIYyalZR3AYRAZYI3M7n7rKolRfnZmRoNW92X2mZovYH4qzA3 zfTg== 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=iouhVsgRuFcCN5tAm6GvWTtpz0fAS5b3+uWNyAatfYg=; b=lXoG/xg9j7pjjdFFAn3C4+I4Fs5Af0XIaFNOdYoX558jXYDo5mluejro8RH8+qOf8C RcCk1CS+aU6W1F8KBnm9ya7OCkEKglYs19/NdWbwoE8U7F8JQcYUitjCdegNZ4Y8CTVa uoYZiTNYNk/msQwkzWCtg2zwjLujmkI+CDAml7WaknnYbgOV08jCuPkhba5PPLUPi89o rKc2D7ECoQhTNwAd0+ZPXAuCSzCWG8c3S/94cW2Fqza8fXyE+L9UVgzkFV7M7lZG6DXs OVNaAuOxjEcGD9hrjtz9nW0hah7AFIdCpxppTQ01UJt301EblDEY9JY0VQB7EFB5MthC UCrg== X-Gm-Message-State: AOAM533qPQPZKntcxJD6Qoe7qkoOzmPFZ0xO/BBRflWPCA+sWAdClGvv oNqg0KM2gT4quVb91oU7AhnNYu11fsTlgcLsA9Jttqx4/Q51zkj1vNEFcACfFGmRtcTLOTiTb5A wKqIOWJZ/gUS26rXgf2lvjWDARe1HZFKmcRqJRTWpAiQvOOonHC25VHTjNORHVMRVxyLxIT0rpm SKlbs1fJcl++IA X-Google-Smtp-Source: ABdhPJxdvWUc1DcE65ol90eklvZfYhpT2BtyKWt0xQqc4M75xO1WIonnkw1Xh+rH08XbmqzYO1ia4Q== X-Received: by 2002:ac8:46d6:: with SMTP id h22mr3141708qto.249.1598982251613; Tue, 01 Sep 2020 10:44:11 -0700 (PDT) Received: from perhan.alvh.no-ip.org ([190.95.19.47]) by smtp.gmail.com with ESMTPSA id 203sm2204457qke.59.2020.09.01.10.44.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Sep 2020 10:44:10 -0700 (PDT) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id DA61B2A1557; Tue, 1 Sep 2020 13:44:08 -0400 (-04) Date: Tue, 1 Sep 2020 13:44:08 -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: <20200901174408.GA6628@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20200901025835.GC3511@paquier.xyz> User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2020-Sep-01, Michael Paquier wrote: > On Mon, Aug 31, 2020 at 09:25:53PM -0400, Alvaro Herrera wrote: > > Actually I think you're wrong; if I put it before the check, then if I > > do "drop index concurrently some_temp_partitioned_index" then it would > > fail; but if I put it after the check, then it does a normal > > non-concurrent index and it works. I'm not sure it's necessary to break > > a case that otherwise works ... > > Hmm. Right. I agree that it would be better to not break that case. > And it means that there is a gap in the regression tests here, so I'd > like to add a test. Please see the attached to achieve that, which > includes your own code changes and the doc parts Agreed -- thanks for that. > (I didn't see a point in changing the new sentence for temporary > relations as the follow-up mentions that). Yeah, I had come to the same conclusion. Pushed now to all branches, thanks. Thanks, Jan, for reporting this bug. -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services