From: Tom Lane <tgl@sss.pgh.pa.us>
To: Thom Brown <thom@linux.com>
Cc: pgsql-committers <pgsql-committers@postgresql.org>
Subject: Re: pgsql: Allow empty target list in SELECT.
Date: Wed, 22 Oct 2014 15:57:19 -0400
Message-ID: <27441.1414007839@sss.pgh.pa.us> (raw)
In-Reply-To: <CAA-aLv4mBXOgbSBPhLPa7sqS6PryihFFb_pzQ7Ue07Oci5g3sQ@mail.gmail.com>
References: <E1Vs0Qu-0004bC-6E@gemulon.postgresql.org>
<CAA-aLv4mBXOgbSBPhLPa7sqS6PryihFFb_pzQ7Ue07Oci5g3sQ@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>
Thom Brown <thom@linux.com> writes:
> On 15 December 2013 02:23, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> Allow empty target list in SELECT.
> This commit introduces another bug:
> # create table colours (id serial, name text, visible boolean);
> CREATE TABLE
> # insert into colours (name, visible) values
> ('blue',true),('yellow',true),('ultraviolet',false),('green',true),('infrared',false);
> INSERT 0 5
> # select into colours2 from colours;
> SELECT 5
> # select * from colours2;
> (No rows)
That's just a pre-existing issue in psql that it's not terribly smart
about displaying zero-column rows. But what psql are you using?
I see
regression=# select * from colours2;
--
(5 rows)
regards, tom lane
--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers
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-committers@postgresql.org
Cc: tgl@sss.pgh.pa.us, thom@linux.com
Subject: Re: pgsql: Allow empty target list in SELECT.
In-Reply-To: <27441.1414007839@sss.pgh.pa.us>
References: <E1Vs0Qu-0004bC-6E@gemulon.postgresql.org> <CAA-aLv4mBXOgbSBPhLPa7sqS6PryihFFb_pzQ7Ue07Oci5g3sQ@mail.gmail.com> <27441.1414007839@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