Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Xh2NL-0001q4-I1 for pgsql-committers@arkaria.postgresql.org; Wed, 22 Oct 2014 20:19:19 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Xh2NK-000156-W5 for pgsql-committers@arkaria.postgresql.org; Wed, 22 Oct 2014 20:19:19 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1Xh2NJ-00012e-F1 for pgsql-committers@postgresql.org; Wed, 22 Oct 2014 20:19:17 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1Xh2NG-0000Ny-94 for pgsql-committers@postgresql.org; Wed, 22 Oct 2014 20:19:16 +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 s9MKJAjb028124; Wed, 22 Oct 2014 16:19:10 -0400 From: Tom Lane To: Thom Brown cc: pgsql-committers Subject: Re: pgsql: Allow empty target list in SELECT. In-reply-to: References: <27441.1414007839@sss.pgh.pa.us> Comments: In-reply-to Thom Brown message dated "Wed, 22 Oct 2014 22:13:14 +0200" Date: Wed, 22 Oct 2014 16:19:10 -0400 Message-ID: <28123.1414009150@sss.pgh.pa.us> X-Pg-Spam-Score: -3.3 (---) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-committers Precedence: bulk Sender: pgsql-committers-owner@postgresql.org Thom Brown 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