Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YHh2L-0005Pr-BO for pgsql-bugs@arkaria.postgresql.org; Sat, 31 Jan 2015 23:01:09 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YHh2J-0000N5-T2 for pgsql-bugs@arkaria.postgresql.org; Sat, 31 Jan 2015 23:01:07 +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 1YHh2I-0000My-VE for pgsql-bugs@postgresql.org; Sat, 31 Jan 2015 23:01:07 +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 1YHh2F-00080e-NT for pgsql-bugs@postgresql.org; Sat, 31 Jan 2015 23:01:05 +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 t0VN0xDx025225; Sat, 31 Jan 2015 18:00:59 -0500 From: Tom Lane To: hans@matfyz.cz cc: pgsql-bugs@postgresql.org Subject: Re: BUG #12721: psql -a does not preserve empty lines between SELECTs In-reply-to: <24128.1422744641@sss.pgh.pa.us> References: <20150131173738.2581.57661@wrigleys.postgresql.org> <18267.1422729300@sss.pgh.pa.us> <24128.1422744641@sss.pgh.pa.us> Comments: In-reply-to Tom Lane message dated "Sat, 31 Jan 2015 17:50:41 -0500" Date: Sat, 31 Jan 2015 18:00:59 -0500 Message-ID: <25224.1422745259@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org I wrote: > Huh --- I take that back; the "queries" and "errors" cases are implemented > totally independently of "all" mode. The "all" mode does work on a line > by line basis, and there's no good reason why it doesn't print blank > lines, except that somebody wasn't thinking very hard about where they > added the test. Will fix. Or maybe not. It's a simple enough change, but it breaks all our regression tests, which use -a and are not expecting blank lines to get echoed. So I think I was right the first time: the existing behavior is probably embedded in enough places that changing it would not be worth the pain. Sorry. > The documentation is wrong too, but not in the way I thought; it should > say that interactive input is never echoed by this feature, rather than > that it's "less useful" to turn it on for that. This still needs fixed though ... regards, tom lane -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs