Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YHgsS-0004xq-03 for pgsql-bugs@arkaria.postgresql.org; Sat, 31 Jan 2015 22:50:56 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YHgsR-0007Ua-Ge for pgsql-bugs@arkaria.postgresql.org; Sat, 31 Jan 2015 22:50:55 +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 1YHgsQ-0007UT-IP for pgsql-bugs@postgresql.org; Sat, 31 Jan 2015 22:50:54 +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 1YHgsJ-0007pd-4p for pgsql-bugs@postgresql.org; Sat, 31 Jan 2015 22:50:53 +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 t0VMofSE024129; Sat, 31 Jan 2015 17:50:41 -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: <18267.1422729300@sss.pgh.pa.us> References: <20150131173738.2581.57661@wrigleys.postgresql.org> <18267.1422729300@sss.pgh.pa.us> Comments: In-reply-to Tom Lane message dated "Sat, 31 Jan 2015 13:35:00 -0500" Date: Sat, 31 Jan 2015 17:50:41 -0500 Message-ID: <24128.1422744641@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: > hans@matfyz.cz writes: >> There is, in the [doc] that psql with option -a echoes all input lines. > Hm. That's poorly phrased: what it actually echoes is commands, not > lines. This must be so because some of the other possible settings of > ECHO require decisions at the per-command level. 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. 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. 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