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 1he3wC-0002zf-FL for pgsql-bugs@arkaria.postgresql.org; Thu, 20 Jun 2019 20:45:40 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1he3wA-000877-TM for pgsql-bugs@arkaria.postgresql.org; Thu, 20 Jun 2019 20:45:38 +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 1he3wA-00084p-Hm for pgsql-bugs@lists.postgresql.org; Thu, 20 Jun 2019 20:45:38 +0000 Received: from mail-qt1-x843.google.com ([2607:f8b0:4864:20::843]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1he3vj-0004qJ-GM for pgsql-bugs@lists.postgresql.org; Thu, 20 Jun 2019 20:45:37 +0000 Received: by mail-qt1-x843.google.com with SMTP id p15so4649956qtl.3 for ; Thu, 20 Jun 2019 13:45:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:subject:message-id:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=GsjYzYaYC9+LoIpY6E4Xo0tTMTstD6nxq4C5hVgEuy0=; b=MxALlSv3sbteOyksGMUOTc/xfqvleHNnCMHeLjfgRavB5wc1OIgTyVlYC0lD86F+RT Y8PFRFN+BKdzVINn9ZDUKxRCXmDl1otBV5e3f9YyThBd5bg2r5YjseRNAZBY/ai29JZ+ NsIbjkkSxtWQZyVSER2GaETv/RaVDTbdCx8bGAgz/cLlM3+tCBsKunUFw41f6aRbelLG rcJ+w0hxc4xIrhSfmbSGzqQxw07cmraqXxFRQTnHE08rHnLNBLjpnyq/54KAYgRpRAC4 EyopGLfoU3cFebiezQ9eHtLj9exxBvpSlXG+9DZVhlszzZBuRCHt6EEjkGz4MnhINdo7 hWbg== 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:subject:message-id:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=GsjYzYaYC9+LoIpY6E4Xo0tTMTstD6nxq4C5hVgEuy0=; b=CIxQzqyGLajgd+YcQY0Ey/Hn4Z5PWgXYfaUardcsypz7d07JnUz3QsXfWqrAiI/xKb VCDs12VawmzFDynU48X3fEcfbIvWHI8eVYEhe2UToatQTRIGO6hiiJh7S+ZRpageJX3/ X++ZvW96lAEAhYCtXHjPjrhF8PTG+RwNOMKcxEKfTRYKOIYF/jABl8kyBwu5kSGbDGA7 3l5T0WAY0oWuFACLA3OLMAH7445OC/vQivT6iCZmhlXzDodmGIdCwMxQ5Tn+/H2z3rCi rQfoRgo+1MepSAJ9w6KD3ouA60bgKzGd9J2MVolteLKc7D0Yf1E1S3rxMBO4pIHCiPur ufbw== X-Gm-Message-State: APjAAAU8czkKE30HcSCH2GWvh8sBvAMLvJcmrKrg10jbgsH+Sp6Gi/R/ UMEJTzhRhK0Bm+m14TGlpsyKJapgx2iR3Q== X-Google-Smtp-Source: APXvYqwizOMlsni5cX+uuioLg3TQZDkqA9AYEYMGpmiCdt/na2ITtazJl77B7d/oXpTBvT9r6EY8Hg== X-Received: by 2002:ac8:1b8b:: with SMTP id z11mr12693040qtj.265.1561063509628; Thu, 20 Jun 2019 13:45:09 -0700 (PDT) Received: from nimloth.alvh.no-ip.org ([177.154.139.196]) by smtp.gmail.com with ESMTPSA id g124sm319232qke.115.2019.06.20.13.45.08 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Thu, 20 Jun 2019 13:45:09 -0700 (PDT) Received: by nimloth.alvh.no-ip.org (Postfix, from userid 1000) id 26185121B35; Thu, 20 Jun 2019 16:45:05 -0400 (-04) Date: Thu, 20 Jun 2019 16:45:05 -0400 From: Alvaro Herrera To: keith.fiske@crunchydata.com, pgsql-bugs@lists.postgresql.org, Tom Lane Subject: Re: BUG #15865: ALTER TABLE statements causing "relation already exists" errors when some indexes exist Message-ID: <20190620204505.GA22934@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <15865-17940eacc8f8b081@postgresql.org> User-Agent: Mutt/1.9.4 (2018-02-28) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2019-Jun-20, PG Bug reporting form wrote: > When testing the setup of our monitoring platform, we started running into > an error when using PostgreSQL as a backend for Grafana. We narrowed down > the issue to only occurring with the latest point release of PG, > specifically 11.4, 10.9 and 9.6.14 (previous major versions were not tested > at this time). The issue can be recreated by following the setup steps for > Grafana with a PG backend and it will occur when the Grafana service is > started for the first time and it tries to set up its schema in PG. We do > not see the error occurring with the previous minor versions (11.3, 10.8, > 9.6.13). Confirmed. Bisection says that commit e76de886157b7f974d4d247908b242607cfbf043 Author: Tom Lane AuthorDate: Wed Jun 12 12:29:24 2019 -0400 CommitDate: Wed Jun 12 12:29:39 2019 -0400 Fix ALTER COLUMN TYPE failure with a partial exclusion constraint. is the culprit. -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services