Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.92) (envelope-from ) id 1jDQCs-0004fj-6x for pgsql-general@arkaria.postgresql.org; Sun, 15 Mar 2020 10:09:18 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1jDQCq-00088z-Go for pgsql-general@arkaria.postgresql.org; Sun, 15 Mar 2020 10:09:16 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1jDQCq-00088s-4m for pgsql-general@lists.postgresql.org; Sun, 15 Mar 2020 10:09:16 +0000 Received: from mail-wm1-x343.google.com ([2a00:1450:4864:20::343]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1jDQCn-0006lE-Sj for pgsql-general@lists.postgresql.org; Sun, 15 Mar 2020 10:09:15 +0000 Received: by mail-wm1-x343.google.com with SMTP id a5so14430533wmb.0 for ; Sun, 15 Mar 2020 03:09:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:content-transfer-encoding:mime-version:subject:message-id:date :to; bh=ZzFr9YAs5U2EMlOl/w6I7CE+aLXo9IZX5Q9Re6DpmII=; b=cRmNYEFKMzNNDtMRN3tNv0aYIimtBthr5y8yLlZRnFemphheYTRA2ZGi/UNVeJ+znY QgP6oUbCiT/lDYFRj3Rbx9bIeY0DwxSoI4D87ejZ7YNon934b2p8a0SxRx7NNrtZywoh Q8geAJi0hRpxYRwy25cMmN2dXDgCjNtCBTBybWofB2+bUAcbDz0TzfQp/kCKUtufnDe1 cIfbiiw+u4nE9gAQaFD9DXxmKkyq/3lHJtzdGqxDi3APES5j2QiumydmBOoe4N1kk+22 yqye4FESsfk+08PFIECwNQ2+9WnJWYe8xr83ujg6gY5aaVGek9cMMyy701iJY8BAW+h3 PlXw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:content-transfer-encoding:mime-version :subject:message-id:date:to; bh=ZzFr9YAs5U2EMlOl/w6I7CE+aLXo9IZX5Q9Re6DpmII=; b=BpREsMq56abulPCqU45q+BLsuQjRbORGfPfJyunH4rDFDLwy+jHct8k3VX7Lv6YA0M Ma0lmK94VAkiZa4Qm55ibdob2VmGTDwb2r1GqME8G8uA8bWg2X0bPslAyLTneFIIaQWE +Czf+VsBKuKKDrzSyCZWniJcWPba6Kv8B7Unp0MTYGVrLW7phYnCYgqyYyddiK6f2H52 4+6/xgpZ0q/+zMMuWBg/vP1D5G4OxMc5EvduoySBy3NMUomOSudcv6HyoUL8EO8pRck0 r1c5Cfv0zHo8tPCOLD22LwdDKH8ti3QjjgQjijHExpEwcPALbfzAr8oQ8FdKunYFeWkG Hx0A== X-Gm-Message-State: ANhLgQ2Y8JMUrjRchayK9bf51i9mGSLfZbTSxBOAvAazt2FYgJWbzJLZ VTXXGz1UdcyDwnaTysDxX2UvGh9K X-Google-Smtp-Source: ADFU+vv8lJEaKGgZedlxa9TP07m0RWalCwQdwPbXdscVsFj6heoQCqaZgbvtOALxFWixLeUZ+Kmeuw== X-Received: by 2002:a1c:b4d4:: with SMTP id d203mr21915480wmf.85.1584266952089; Sun, 15 Mar 2020 03:09:12 -0700 (PDT) Received: from [192.168.1.8] (241-57-239-77.dyn.cable.fcom.ch. [77.239.57.241]) by smtp.gmail.com with ESMTPSA id m187sm24482713wme.16.2020.03.15.03.09.11 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 15 Mar 2020 03:09:11 -0700 (PDT) From: =?utf-8?Q?Paul_F=C3=B6rster?= Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 13.0 \(3608.60.0.2.5\)) Subject: Exclude logging certain connections? Message-Id: <1CF8C28E-A9B9-44F6-A849-B3898B8AEAF5@gmail.com> Date: Sun, 15 Mar 2020 11:09:10 +0100 To: pgsql-general X-Mailer: Apple Mail (2.3608.60.0.2.5) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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=3D# create role mon login; CREATE ROLE postgres=3D# alter role mon set log_connections=3Doff; ERROR: parameter "log_connections" cannot be set after connection start (source: = https://dba.stackexchange.com/questions/118018/is-it-possible-to-exclude-s= pecific-users-in-log-activity-of-postgresql) There is no connection at the time. So why do I get the error? And what = can I do about it? Cheers, Paul=