pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Jeremy Finzel <finzelj@gmail.com>
To: Postgres General <pgsql-general@postgresql.org>
Subject: Re: Why does log_error_verbosity not apply to server logs?
Date: Mon, 22 Apr 2019 13:47:28 -0700
Message-ID: <ed07ee88-68da-67f7-0bfa-1741a0f48bbc@aklaver.com> (raw)
In-Reply-To: <CAMa1XUjm5o7xUDqmVps-s35xQRBuLYU8eX7boFSZa+7bsgJwCA@mail.gmail.com>
References: <CAMa1XUjm5o7xUDqmVps-s35xQRBuLYU8eX7boFSZa+7bsgJwCA@mail.gmail.com>

On 4/22/19 1:30 PM, Jeremy Finzel wrote:
> I have a DO block which is raising a log message with number of rows 
> deleted.  It also shows CONTEXT messages every time, which I don't 
> want.  But setting in the client log_error_verbosity = terse does not 
> work to get rid of the messages.  I can't get it to work even setting it 
> on a per-user level.
> 
> My client shows terse verbosity as expected, but the server logs always 
> no matter what have CONTEXT messages.
> 
> Is there any way to suppress these when called in a DO block like this?

Well the docs:

https://www.postgresql.org/docs/11/runtime-config-logging.html#RUNTIME-CONFIG-LOGGING-WHAT

say this can only be changed by a superuser.

So are you doing it as a superuser?

Can you show how you are modifying the setting?

> 
> Thanks,
> Jeremy


-- 
Adrian Klaver
adrian.klaver@aklaver.com





view thread (7+ messages)  latest in thread

Message-ID: <ed07ee88-68da-67f7-0bfa-1741a0f48bbc@aklaver.com>
Permalink:  ../ed07ee88-68da-67f7-0bfa-1741a0f48bbc@aklaver.com/
Also on:    postgresql.org/message-id/ed07ee88-68da-67f7-0bfa-1741a0f48bbc@aklaver.com

 · 

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-general@postgresql.org
  Cc: adrian.klaver@aklaver.com, finzelj@gmail.com
  Subject: Re: Why does log_error_verbosity not apply to server logs?
  In-Reply-To: <ed07ee88-68da-67f7-0bfa-1741a0f48bbc@aklaver.com>
  References: <CAMa1XUjm5o7xUDqmVps-s35xQRBuLYU8eX7boFSZa+7bsgJwCA@mail.gmail.com> <ed07ee88-68da-67f7-0bfa-1741a0f48bbc@aklaver.com>

* 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