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 1midwz-0001Yk-AE for pgsql-bugs@arkaria.postgresql.org; Thu, 04 Nov 2021 14:42:45 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1midwy-0004tT-6l for pgsql-bugs@arkaria.postgresql.org; Thu, 04 Nov 2021 14:42:44 +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 1midwx-0004rp-Vj for pgsql-bugs@lists.postgresql.org; Thu, 04 Nov 2021 14:42:43 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1midwv-0004iV-KY for pgsql-bugs@lists.postgresql.org; Thu, 04 Nov 2021 14:42:42 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 1A4Egc9m322346; Thu, 4 Nov 2021 10:42:38 -0400 From: Tom Lane To: Amaury Dumoulin cc: "David G. Johnston" , PostgreSQL mailing lists Subject: Re: BUG #17271: Updating enum columns type fails when constraints exist In-reply-to: References: <17271-8b4317357c4991e2@postgresql.org> Comments: In-reply-to Amaury Dumoulin message dated "Thu, 04 Nov 2021 15:18:18 +0100" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <322344.1636036958.1@sss.pgh.pa.us> Date: Thu, 04 Nov 2021 10:42:38 -0400 Message-ID: <322345.1636036958@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Amaury Dumoulin writes: > I believe it should fail. > However the error message should state that the constraint is blocking the > operation. > The current error message makes it hard to make a connection to the culprit. Hmm, that's a reasonable concern, though you didn't make it clear that that was what you were on about. We could possibly provide an addendum like "CONTEXT: while processing constraint foo" in this situation. regards, tom lane