Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Xh22C-000100-RO for pgsql-committers@arkaria.postgresql.org; Wed, 22 Oct 2014 19:57:28 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Xh22B-0003vm-9J for pgsql-committers@arkaria.postgresql.org; Wed, 22 Oct 2014 19:57:27 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1Xh22A-0003vf-AP for pgsql-committers@postgresql.org; Wed, 22 Oct 2014 19:57:26 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1Xh227-0000fY-2w for pgsql-committers@postgresql.org; Wed, 22 Oct 2014 19:57:24 +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 s9MJvJHw027442; Wed, 22 Oct 2014 15:57:19 -0400 From: Tom Lane To: Thom Brown cc: pgsql-committers Subject: Re: pgsql: Allow empty target list in SELECT. In-reply-to: References: Comments: In-reply-to Thom Brown message dated "Wed, 22 Oct 2014 21:41:10 +0200" Date: Wed, 22 Oct 2014 15:57:19 -0400 Message-ID: <27441.1414007839@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: > On 15 December 2013 02:23, Tom Lane 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