Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oVeWF-0002qa-OZ for pgsql-general@arkaria.postgresql.org; Tue, 06 Sep 2022 19:46:00 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oVeWE-0003vL-Lj for pgsql-general@arkaria.postgresql.org; Tue, 06 Sep 2022 19:45:58 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oVeWD-0003v6-MU for pgsql-general@lists.postgresql.org; Tue, 06 Sep 2022 19:45:58 +0000 Received: from out5-smtp.messagingengine.com ([66.111.4.29]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oVeWA-0002QY-W9 for pgsql-general@postgresql.org; Tue, 06 Sep 2022 19:45:56 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 1E2045C00CC; Tue, 6 Sep 2022 15:45:53 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Tue, 06 Sep 2022 15:45:53 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= cc:content-transfer-encoding:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm1; t=1662493553; x= 1662579953; bh=qw25u9lLs0Q418IvuhMAOq1EkH/mWt87xkNQOTcdddM=; b=g dJX86ht0fXkMJfG4P6gqDb8d/bFGSNyyGAh6VzH7K2JIIohoCMafH0vPbVuE/y/w IuN28QhjOKvO25vWPsacBiHPMdqfgXON50h0kDxUYL1iWI6JvAzlHLn3MU/KdL5r Td5zot0VQXU69IUF6Kgkj+4C63wSYhsH873FbWpSuL7ERARNPpSmSTwE16NdYIuq LAC1OGm6jIJKlku7JjaqScG5oOo2MEY3fqIdb+hBclA/Xe/9svE6dIpxaYpNJul4 wMRLjENLCQMzRohTt0r/OY1xizWRu2GB9S6K11u9oO/KmGdHedX6uglO9yFX/RY4 ad/cQb/O9WsRsYM7HlsEg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:date:feedback-id:feedback-id:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm2; t=1662493553; x=1662579953; bh=q w25u9lLs0Q418IvuhMAOq1EkH/mWt87xkNQOTcdddM=; b=epNw3/5/UNTh0+mdu aLWj0JrrwFKXhk60XRClz3EJIn7uZ3/c+IooiTAoxz2ErO8qGSCMKvfQzZ9+EDg2 I2HWtrCuSpBQaYn4I440RErCI606Zk4oNSceOtlUd0YYiqNyB/gvvTbX24hLMpvQ UF7ln5HPRDTTrJnYcK9Tq9g08obd+lUj/EYG+/l1nOW+iVTAdkuEzLf8Wdh0j8Gx v2tGgUYrNrUYPIgMTIRT1NE9I1tnxt8uU6CTplilK3a13rcckl8JgzGJ2/+Dq7z8 rn+9N56Afw0kYgu+k4649M9pwfvWt55pYT68ZbszvB0T7J7tt2Kriv3LpWgrRE3a aIH1A== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrvdelkedgudegvdcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefkffggfgfuvfhfhfgjtgfgsehtkeertddtfeejnecuhfhrohhmpeetughr ihgrnhcumfhlrghvvghruceorggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtg homheqnecuggftrfgrthhtvghrnhepgfdtvdelkedviefhjeetgeejteetudegueeugfef feeiueevkeevueduvdelleegnecuffhomhgrihhnpehthhhomhhsohhnrhgvuhhtvghrsh drtghomhenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhm pegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtohhm X-ME-Proxy: Feedback-ID: i76984098:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 6 Sep 2022 15:45:52 -0400 (EDT) Message-ID: Date: Tue, 6 Sep 2022 12:45:50 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.13.0 Subject: Re: log_min_messages = warning Content-Language: en-US To: "Dirschel, Steve" , "pgsql-general@postgresql.org" References: From: Adrian Klaver In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 9/6/22 12:07, Dirschel, Steve wrote: > We recently upgraded from postgres 12.8 to 14.3.  We are running Aurora > Postgres on AWS. > > We have procedures that will make calls to RAISE NOTICE to write out > messages if you interactively call the procedure through psql.  These > procedures are getting called by pg_cron. > > Since upgrading these RAISE NOTICE messages are getting written to the > postgres log file: > > For example: > > 13:45:00.720882-05 > > CONTEXT: PL/pgSQL function perf.snap_stats() line 242 at RAISE > > 2022-09-06 18:45:01 UTC::@:[21535]:LOG: cron job 2: NOTICE: Snapping > dba_hist_system_event at 2022-09-06 13:45:00.725818-05 > > Log_min_messages is set to warning so my understanding is that should > only log messages at warning, error, log, fatal, or panic.  Any idea how > to troubleshoot why these are getting written to the log file? 1) Has log_min_messages been commented out? 2) Was the setting changed from something else? 3) If 2) was the server reloaded/restarted to catch the change? 4) Are you sure you are looking at the correct setting? Try: select setting, source, sourcefile, pending_restart from pg_settings where name = 'log_min_messages'; to see if the value is coming from something like an include file. > > Thanks > > This e-mail is for the sole use of the intended recipient and contains > information that may be privileged and/or confidential. If you are not > an intended recipient, please notify the sender by return e-mail and > delete this e-mail and any attachments. Certain required legal entity > disclosures can be accessed on our website: > https://www.thomsonreuters.com/en/resources/disclosures.html -- Adrian Klaver adrian.klaver@aklaver.com