Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WbWXP-0003T2-LA for pgsql-bugs@arkaria.postgresql.org; Sat, 19 Apr 2014 14:46:39 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WbWXP-00047H-2r for pgsql-bugs@arkaria.postgresql.org; Sat, 19 Apr 2014 14:46:39 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WbWXN-00045I-FV for pgsql-bugs@postgresql.org; Sat, 19 Apr 2014 14:46:37 +0000 Received: from momjian.us ([72.94.173.45]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WbWXK-0002EY-8s for pgsql-bugs@postgresql.org; Sat, 19 Apr 2014 14:46:36 +0000 Received: from bruce by momjian.us with local (Exim 4.72) (envelope-from ) id 1WbWXH-0004yw-OC; Sat, 19 Apr 2014 10:46:31 -0400 Date: Sat, 19 Apr 2014 10:46:31 -0400 From: Bruce Momjian To: Andres Freund Cc: mduyunov@avito.ru, pgsql-bugs@postgresql.org Subject: Re: BUG #9186: CONTEXT log line still appears when turned off Message-ID: <20140419144631.GC31555@momjian.us> References: <20140211143210.2708.38731@wrigleys.postgresql.org> <20140419132700.GB31555@momjian.us> <20140419133552.GC1706@awork2.anarazel.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20140419133552.GC1706@awork2.anarazel.de> User-Agent: Mutt/1.5.20 (2009-06-14) X-Pg-Spam-Score: -2.6 (--) 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 Sat, Apr 19, 2014 at 03:35:52PM +0200, Andres Freund wrote: > Hi, > > On 2014-04-19 09:27:00 -0400, Bruce Momjian wrote: > > Can anyone comment on this? I am able reproduce this in head, and the > > behavior does look odd. I am able to see the error by just doing: > > > > SET log_min_error_statement = notice; > > > > in a session before calling the functions; I didn't need to modify > > postgresql.conf. I am not sure even where to start in debugging this. > > Aren't CONTEXT messages influenced by log_error_verbosity, rather than > log_min_error_statement? Thanks. I was confused by this, and I can see how the user was confused because of the way the log message appears in the email, though that might be just cut/past wrapping: 2014-02-11 18:03:42 MSK pid=6601,user=postgres,db=dbname,host=10.7.170.1(61351) NOTICE: Hello, Maxim 2014-02-11 18:03:42 MSK pid=6601,user=postgres,db=dbname,host=10.7.170.1(61351) CONTEXT: SQL statement "SELECT test_func('Maxim')" PL/pgSQL function test_call2() line 3 at PERFORM That "statement" is not generated by log_min_error_statement, but rather is part of the CONTEXT line. Using log_error_verbosity=terse does allow the notice to appear in the logs without the context. -- 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