Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dYE77-0008VJ-5W for pgsql-hackers@arkaria.postgresql.org; Thu, 20 Jul 2017 16:15:45 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dYE76-0007NR-Hp for pgsql-hackers@arkaria.postgresql.org; Thu, 20 Jul 2017 16:15:44 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dYE5a-0004cU-L1 for pgsql-hackers@postgresql.org; Thu, 20 Jul 2017 16:14:10 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dYE5Y-0007PY-7h for pgsql-hackers@postgresql.org; Thu, 20 Jul 2017 16:14:09 +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 v6KGE6q4004182; Thu, 20 Jul 2017 12:14:06 -0400 From: Tom Lane To: "David G. Johnston" cc: tushar , PostgreSQL-development Subject: Re: pg_upgrade failed if view contain natural left join condition In-reply-to: References: <98b283cd-6dda-5d3f-f8ac-87db8c76a3da@enterprisedb.com> <7383.1500558803@sss.pgh.pa.us> Comments: In-reply-to "David G. Johnston" message dated "Thu, 20 Jul 2017 08:57:37 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <4180.1500567246.1@sss.pgh.pa.us> Date: Thu, 20 Jul 2017 12:14:06 -0400 Message-ID: <4181.1500567246@sss.pgh.pa.us> List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org "David G. Johnston" writes: > Per the docs: > "If there are no common column names, NATURAL behaves like CROSS JOIN." > I'm being a bit pedantic here but since NATURAL is a replacement for > "ON/USING" it would seem more consistent to describe it, when no matching > columns are found, as "behaves like specifying ON TRUE" instead. Yeah, the analogy to CROSS JOIN falls down if it's an outer join. I'll go fix that. > I find it a bit strange, though not surprising, that it doesn't devolve to > "ON FALSE". No, it's normal that an AND of no conditions degenerates to TRUE. It's like omitting a WHERE clause. regards, tom lane -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers