Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eSOwX-0004xE-Kr for pgsql-general@arkaria.postgresql.org; Fri, 22 Dec 2017 15:09:01 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eSOwX-0005V0-7w for pgsql-general@arkaria.postgresql.org; Fri, 22 Dec 2017 15:09:01 +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 1eSOwW-0005Uq-T9 for pgsql-general@lists.postgresql.org; Fri, 22 Dec 2017 15:09:01 +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.89) (envelope-from ) id 1eSOwU-0006JP-79 for pgsql-general@postgresql.org; Fri, 22 Dec 2017 15:08:59 +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 vBMF8utU019207; Fri, 22 Dec 2017 10:08:56 -0500 From: Tom Lane To: Ken Tanzer cc: "David G. Johnston" , Victor Yegorov , "pgsql-general@postgresql.org" Subject: Re: Intersection or zero-column queries In-reply-to: References: <8055.1513910088@sss.pgh.pa.us> <9337.1513911586@sss.pgh.pa.us> Comments: In-reply-to Ken Tanzer message dated "Thu, 21 Dec 2017 23:56:23 -0800" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <19205.1513955336.1@sss.pgh.pa.us> Date: Fri, 22 Dec 2017 10:08:56 -0500 Message-ID: <19206.1513955336@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Ken Tanzer writes: > I noticed I get this behavior in 9.6, but in 9.2 an empty select results in > a syntax error. Which just got me curious what caused the change, if it > was deliberate, and if one or the other is more proper behavior. Yes, it was an intentional change, see https://git.postgresql.org/gitweb/?p=postgresql.git&a=commitdiff&h=1b4f7f93b There should be something about it in the 9.4 release notes. regards, tom lane