pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Paul Förster <paul.foerster@gmail.com>
To: pgsql-general <pgsql-general@lists.postgresql.org>
Subject: Exclude logging certain connections?
Date: Sun, 15 Mar 2020 11:09:10 +0100
Message-ID: <1CF8C28E-A9B9-44F6-A849-B3898B8AEAF5@gmail.com> (raw)

Hi,

is there a way to exclude certain connections, for example recurring monitoring connections, from the postgres.log?

I found this from in old post on stackexchange.com:

postgres=# create role mon login;
CREATE ROLE
postgres=# alter role mon set log_connections=off;
ERROR:  parameter "log_connections" cannot be set after connection start

(source: https://dba.stackexchange.com/questions/118018/is-it-possible-to-exclude-specific-users-in-log-activ...)

There is no connection at the time. So why do I get the error? And what can I do about it?

Cheers,
Paul




view thread (3+ messages)  latest in thread

Message-ID: <1CF8C28E-A9B9-44F6-A849-B3898B8AEAF5@gmail.com>
Permalink:  ../1CF8C28E-A9B9-44F6-A849-B3898B8AEAF5@gmail.com/
Also on:    postgresql.org/message-id/1CF8C28E-A9B9-44F6-A849-B3898B8AEAF5@gmail.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: paul.foerster@gmail.com
  Subject: Re: Exclude logging certain connections?
  In-Reply-To: <1CF8C28E-A9B9-44F6-A849-B3898B8AEAF5@gmail.com>
  References: <1CF8C28E-A9B9-44F6-A849-B3898B8AEAF5@gmail.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