Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XZoTB-0006ar-CD for pgsql-bugs@arkaria.postgresql.org; Thu, 02 Oct 2014 22:03:29 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1XZoTA-0003FQ-Aj for pgsql-bugs@arkaria.postgresql.org; Thu, 02 Oct 2014 22:03:28 +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 1XZoT8-0003FF-8x for pgsql-bugs@postgresql.org; Thu, 02 Oct 2014 22:03:26 +0000 Received: from momjian.us ([72.94.173.45]) by makus.postgresql.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1XZoSz-0003xc-Tp for pgsql-bugs@postgresql.org; Thu, 02 Oct 2014 22:03:24 +0000 Received: from bruce by momjian.us with local (Exim 4.72) (envelope-from ) id 1XZoSx-0005ON-MK; Thu, 02 Oct 2014 18:03:15 -0400 Date: Thu, 2 Oct 2014 18:03:15 -0400 From: Bruce Momjian To: hans@matfyz.cz Cc: pgsql-bugs@postgresql.org Subject: Re: BUG #11477: psql -L no stderr Message-ID: <20141002220315.GA20459@momjian.us> References: <20140923144546.17171.14394@wrigleys.postgresql.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20140923144546.17171.14394@wrigleys.postgresql.org> User-Agent: Mutt/1.5.20 (2009-06-14) X-Pg-Spam-Score: -2.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 On Tue, Sep 23, 2014 at 02:45:46PM +0000, hans@matfyz.cz wrote: > The following bug has been logged on the website: > > Bug reference: 11477 > Logged by: Hans Ginzel > Email address: hans@matfyz.cz > PostgreSQL version: 9.4beta2 > Operating system: Centos 6.5 > Description: > > Hello! > > Command > psql -L logfile > logs only stdout (formated with stars) but not stderr. > > Command > psql -L logfile 2>logfile > logs also warnings/errors but does not write them to terminal. > > Command > psql 1>&2 |tee logfile > writes both to terminal and file but without stars formatting. > > I am sorry, but log without errors logging is NOT a log file. I consider not > logging stderr to logfile when -L is specified as a bug. > > Please add coppying also stderr to logfile when -L. The documentation says: -L filename --log-file=filename Write all query output into file filename, in addition to the normal output destination. There is no mention of errors being logged here. Logging is more than logging of errors. -- Bruce Momjian http://momjian.us EnterpriseDB http://enterprisedb.com + Everyone has their own god. + -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs