pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
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 16:19:10 -0400
Message-ID: <28123.1414009150@sss.pgh.pa.us> (raw)
In-Reply-To: <CAA-aLv47DpdU5HToNQGuw6Zh74BXU3poACW=nH_FK4qmc73N+w@mail.gmail.com>
References: <E1Vs0Qu-0004bC-6E@gemulon.postgresql.org>
	<CAA-aLv4mBXOgbSBPhLPa7sqS6PryihFFb_pzQ7Ue07Oci5g3sQ@mail.gmail.com>
	<27441.1414007839@sss.pgh.pa.us>
	<CAA-aLv7SjOkt-09Fh8gwh_YQD3B4EcAxzLh7XLyeh9tvKtMwHw@mail.gmail.com>
	<CAA-aLv47DpdU5HToNQGuw6Zh74BXU3poACW=nH_FK4qmc73N+w@mail.gmail.com>
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>

Thom Brown <thom@linux.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


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers



view thread (9+ messages)  latest in thread

Message-ID: <28123.1414009150@sss.pgh.pa.us>
Permalink:  ../28123.1414009150@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/28123.1414009150@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-committers@postgresql.org
  Cc: tgl@sss.pgh.pa.us, thom@linux.com
  Subject: Re: pgsql: Allow empty target list in SELECT.
  In-Reply-To: <28123.1414009150@sss.pgh.pa.us>
  References: <E1Vs0Qu-0004bC-6E@gemulon.postgresql.org> <CAA-aLv4mBXOgbSBPhLPa7sqS6PryihFFb_pzQ7Ue07Oci5g3sQ@mail.gmail.com> <27441.1414007839@sss.pgh.pa.us> <CAA-aLv7SjOkt-09Fh8gwh_YQD3B4EcAxzLh7XLyeh9tvKtMwHw@mail.gmail.com> <CAA-aLv47DpdU5HToNQGuw6Zh74BXU3poACW=nH_FK4qmc73N+w@mail.gmail.com> <28123.1414009150@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