pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Ken Tanzer <ken.tanzer@gmail.com>
Cc: David G. Johnston <david.g.johnston@gmail.com>
Cc: Victor Yegorov <vyegorov@gmail.com>
Cc: pgsql-general@postgresql.org <pgsql-general@postgresql.org>
Subject: Re: Intersection or zero-column queries
Date: Fri, 22 Dec 2017 10:08:56 -0500
Message-ID: <19206.1513955336@sss.pgh.pa.us> (raw)
In-Reply-To: <CAD3a31UFadYc9QiZwe9A8it_=zBmXz=mK3=Mqe-rkzrV7N+pQQ@mail.gmail.com>
References: <CAGnEbojGJrRSOgJwNGM7JSJZpVAf8xXcVPbVrGdhbVEHZ-BUMw@mail.gmail.com>
	<8055.1513910088@sss.pgh.pa.us>
	<CAKFQuwahiuROAL-4cT9RBZGJmSd-4N2Aex2k+-5adkCv_B2O3w@mail.gmail.com>
	<9337.1513911586@sss.pgh.pa.us>
	<CAD3a31UFadYc9QiZwe9A8it_=zBmXz=mK3=Mqe-rkzrV7N+pQQ@mail.gmail.com>

Ken Tanzer <ken.tanzer@gmail.com> 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




view thread (10+ messages)  latest in thread

Message-ID: <19206.1513955336@sss.pgh.pa.us>
Permalink:  ../19206.1513955336@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/19206.1513955336@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: tgl@sss.pgh.pa.us, ken.tanzer@gmail.com, david.g.johnston@gmail.com, vyegorov@gmail.com
  Subject: Re: Intersection or zero-column queries
  In-Reply-To: <19206.1513955336@sss.pgh.pa.us>
  References: <CAGnEbojGJrRSOgJwNGM7JSJZpVAf8xXcVPbVrGdhbVEHZ-BUMw@mail.gmail.com> <8055.1513910088@sss.pgh.pa.us> <CAKFQuwahiuROAL-4cT9RBZGJmSd-4N2Aex2k+-5adkCv_B2O3w@mail.gmail.com> <9337.1513911586@sss.pgh.pa.us> <CAD3a31UFadYc9QiZwe9A8it_=zBmXz=mK3=Mqe-rkzrV7N+pQQ@mail.gmail.com> <19206.1513955336@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox