Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Z88Mt-0005BS-NW for pgsql-hackers@arkaria.postgresql.org; Thu, 25 Jun 2015 14:43:07 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1Z88Mt-0005gZ-7O for pgsql-hackers@arkaria.postgresql.org; Thu, 25 Jun 2015 14:43:07 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1Z88Mq-0005fc-S7 for pgsql-hackers@postgresql.org; Thu, 25 Jun 2015 14:43:04 +0000 Received: from mout.gmx.net ([212.227.15.18]) by magus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.84) (envelope-from ) id 1Z88Mn-0002mP-7o for pgsql-hackers@postgresql.org; Thu, 25 Jun 2015 14:43:04 +0000 Received: from auth1-smtp.messagingengine.com ([66.111.4.227]) by mail.gmx.com (mrgmx002) with ESMTPSA (Nemesis) id 0LuxG5-1Yzqi32v4L-0102Z4 for ; Thu, 25 Jun 2015 16:42:58 +0200 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailauth.nyi.internal (Postfix) with ESMTP id F2329203E2 for ; Thu, 25 Jun 2015 10:42:55 -0400 (EDT) Received: from frontend2 ([10.202.2.161]) by compute6.internal (MEProxy); Thu, 25 Jun 2015 10:42:55 -0400 X-Sasl-enc: Sh8aOhyFzXR/Dcw363ZbzbZw23wyhex4H0eubt/jdJG8 1435243375 Received: from [192.168.1.146] (unknown [204.145.120.11]) by mail.messagingengine.com (Postfix) with ESMTPA id 8CDE86800CA; Thu, 25 Jun 2015 10:42:55 -0400 (EDT) Message-ID: <558C136E.8090802@gmx.net> Date: Thu, 25 Jun 2015 10:42:54 -0400 From: Peter Eisentraut User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: Bruce Momjian , pgsql-hackers Subject: Re: [COMMITTERS] pgsql: psql: show proper row count in \x mode for zero-column output References: In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:q6lQt8coKdjuHfB5HhMOD7JEmaPykPTmKgkD2heMoDYIW5GmGjO 892dQycf5/AbbxCFkS18idxqjQ8S35JsLdKcv5aX8fO+p9oHYTWjXPd8/jxOzKZu2fem+ie PT1iJbCI2J+S5FE0Fm1eMjvqINFdXkjXXYg5aALFIzlb8xU5ga5PDcVpXQPZ9Xebp08Nn6t 6xdXy1sj7NBoCSMKfVCHw== X-UI-Out-Filterresults: notjunk:1;V01:K0:5xC5EmxsD/Y=:3ilBNdKZOKZey2yAndKFU5 fahipY7fyACtKzzwbqXI9+o4avajSml408o4OmkAtojTav5n2Q3KPnc2zekYG2+xnUvifGmNn heFgeKDw3FX1dfH6fF6jWGXKAPAw4OxM/o9coQLKj7ezbZCWvOXDgSlB+HTLaxzs+UcsM7Thv ZbuCGW8UoWkP0inQvz31xPHczITRW+1Pmtnpc933CtyBuWBAjp53WW4iohz4ZM1BnbgRkzRiz N1eUU+4EN/PFZ5dKFFcVKKG0i19I8uEWy769R57N1H+FTyUgs3o/N+b/FbFb6eNTw8qLIvBYY vVnpozSGgzdH3t+w5/KHayXaDnMvVGsCz6VKQYftIQxO6c1NAhK5uGv8CC4aZB1LAYp5q8VS2 6nY0zrIx5ZAoO+22aflKG+u9ZS3dLm8LexGDVlVSLwQ4DD6hDYiQbN6qdes8xloM0mMVvKt5g Z+rJ2hxuoZFifG6VtxPlE1Z5tjL3tTICk0F4a3GtxqyL+qbCY+wuaBUCSj2XjMEpGaOHciY6r J0yB6kEsYcf/rP5QI1Yv60rmFv9sA8lZAga+I9cTx7aCdt7eM4JQ8x4Txjl8jLEgsqwLND2OX 6A3XpYn1cijubnjRKYwmvI61MU/0JjLeumt1FpoDg4ajQ9QyI2PFr0DiQhdxsgCAru5DkRgax HuHcHe3hIKBYWfMmYS2b469NikwdVVGbtwolenbeudrezxT2TEqmozmhWPE8k7cQ1W9M= X-Pg-Spam-Score: -3.3 (---) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org On 3/24/15 9:04 PM, Bruce Momjian wrote: > psql: show proper row count in \x mode for zero-column output > > Also, fix pager enable selection for such cases, and other cleanups for > zero-column output. > > Report by Thom Brown > > Branch > ------ > master > > Details > ------- > http://git.postgresql.org/pg/commitdiff/376a0c4547fe98c45476647596ce9c9b394f8415 This change added an extra blank line to the output of a zero-row result. Compare: [9.4] $ psql -X -d postgres -c 'select * from pg_class where false' -x (No rows) $ [9.5] $ psql -X -d postgres -c 'select * from pg_class where false' -x (0 rows) $ Was that intentional? -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers