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 1mc7bF-0007mT-GS for pgsql-bugs@arkaria.postgresql.org; Sun, 17 Oct 2021 14:57:21 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mc7bE-0000Nf-Cl for pgsql-bugs@arkaria.postgresql.org; Sun, 17 Oct 2021 14:57:20 +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 1mc7bE-0000NW-5N for pgsql-bugs@lists.postgresql.org; Sun, 17 Oct 2021 14:57:20 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mc7bC-0004Qc-SW for pgsql-bugs@lists.postgresql.org; Sun, 17 Oct 2021 14:57:19 +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 19HEvGIp1411095; Sun, 17 Oct 2021 10:57:17 -0400 From: Tom Lane To: "David G. Johnston" cc: "lxndrkrlv@gmail.com" , "pgsql-bugs@lists.postgresql.org" Subject: Re: BUG #17233: Incorrect behavior of DELETE command with bad subquery in WHERE clause In-reply-to: References: <17233-afb9d806aaa64b17@postgresql.org> <1409812.1634481258@sss.pgh.pa.us> Comments: In-reply-to "David G. Johnston" message dated "Sun, 17 Oct 2021 07:50:24 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-ID: <1411093.1634482636.1@sss.pgh.pa.us> Content-Transfer-Encoding: 8bit Date: Sun, 17 Oct 2021 10:57:16 -0400 Message-ID: <1411094.1634482636@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk "David G. Johnston" writes: > I was actually wondering why the error wasn’t an ambiguous column name > error. For a pure select query we already allow duplicate column names in > the result. To get an "ambiguous column name" error, there'd need to be multiple *accessible* names, not multiple inaccessible ones. Although I concede your point that maybe we could adjust the "does not exist" phraseology too. Maybe something like "column foo is not available"? regards, tom lane