Re: pgsql: Allow empty target list in SELECT.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Thom Brown <thom(at)linux(dot)com>
Cc: pgsql-committers <pgsql-committers(at)postgresql(dot)org>
Subject: Re: pgsql: Allow empty target list in SELECT.
Date: 2014-10-22 20:19:10
Message-ID: 28123.1414009150@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Thom Brown <thom(at)linux(dot)com> writes:
> I can see the same output as you if I get it to ignore my .psqlrc file:

> # select * from colours2;
> --
> (5 rows)

> Turns out it's "\x auto" causing it.

Ah. Seems like a bug in the expanded-mode printout logic then.
But, in any case, it's been like that a very long time. You
could do this at least as far back as 8.4:

regression=# create table foo();
CREATE TABLE
regression=# insert into foo default values;
INSERT 0 1
regression=# insert into foo default values;
INSERT 0 1
regression=# select * from foo;
--
(2 rows)

regression=# \x on
Expanded display is on.
regression=# select * from foo;
(No rows)

regards, tom lane

In response to

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2014-10-22 22:42:32 pgsql: Ensure libpq reports a suitable error message on unexpected sock
Previous Message Thom Brown 2014-10-22 20:13:14 Re: pgsql: Allow empty target list in SELECT.