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 1hLT6p-0007DM-79 for pgsql-sql@arkaria.postgresql.org; Tue, 30 Apr 2019 13:47:47 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hLT6n-0000km-HY for pgsql-sql@arkaria.postgresql.org; Tue, 30 Apr 2019 13:47:45 +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 1hLT6n-0000jX-8S for pgsql-sql@lists.postgresql.org; Tue, 30 Apr 2019 13:47:45 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hLT6l-0007Ru-6C for pgsql-sql@lists.postgresql.org; Tue, 30 Apr 2019 13:47:44 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id x3UDlcpv026224; Tue, 30 Apr 2019 09:47:38 -0400 From: Tom Lane To: Mike LAZLO cc: pgsql-sql@lists.postgresql.org Subject: Re: ERROR: missing FROM-clause entry for table "new" In-reply-to: <625497565.102576.1556631694006@connect.xfinity.com> References: <625497565.102576.1556631694006@connect.xfinity.com> Comments: In-reply-to Mike LAZLO message dated "Tue, 30 Apr 2019 09:41:32 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <26221.1556632058.1@sss.pgh.pa.us> Date: Tue, 30 Apr 2019 09:47:38 -0400 Message-ID: <26223.1556632058@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Mike LAZLO writes: > What is wrong with this picture: Hm, the error message is pretty unhelpful, but I think the root problem is too many "NEW"s in several places: > , NEW.NEW.aircraft_key::int ^^^^^^^ regards, tom lane