pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bruce Momjian <bruce@momjian.us>
To: Andres Freund <andres@2ndquadrant.com>
Cc: mduyunov@avito.ru
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #9186: CONTEXT log line still appears when turned off
Date: Sat, 19 Apr 2014 10:46:31 -0400
Message-ID: <20140419144631.GC31555@momjian.us> (raw)
In-Reply-To: <20140419133552.GC1706@awork2.anarazel.de>
References: <20140211143210.2708.38731@wrigleys.postgresql.org>
	<20140419132700.GB31555@momjian.us>
	<20140419133552.GC1706@awork2.anarazel.de>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

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  <bruce@momjian.us>        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



view thread (5+ messages)  latest in thread

Message-ID: <20140419144631.GC31555@momjian.us>
Permalink:  ../20140419144631.GC31555@momjian.us/
Also on:    postgresql.org/message-id/20140419144631.GC31555@momjian.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: bruce@momjian.us, andres@2ndquadrant.com, mduyunov@avito.ru
  Subject: Re: BUG #9186: CONTEXT log line still appears when turned off
  In-Reply-To: <20140419144631.GC31555@momjian.us>
  References: <20140211143210.2708.38731@wrigleys.postgresql.org> <20140419132700.GB31555@momjian.us> <20140419133552.GC1706@awork2.anarazel.de> <20140419144631.GC31555@momjian.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox