Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tEFii-006Ifh-2y for pgsql-general@arkaria.postgresql.org; Thu, 21 Nov 2024 22:32:16 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1tEFig-002Q8S-Pv for pgsql-general@arkaria.postgresql.org; Thu, 21 Nov 2024 22:32:14 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tEFif-002Q8K-SX for pgsql-general@lists.postgresql.org; Thu, 21 Nov 2024 22:32:14 +0000 Received: from fout-b8-smtp.messagingengine.com ([202.12.124.151]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tEFic-003Att-V8 for pgsql-general@postgresql.org; Thu, 21 Nov 2024 22:32:13 +0000 Received: from phl-compute-09.internal (phl-compute-09.phl.internal [10.202.2.49]) by mailfout.stl.internal (Postfix) with ESMTP id 47BC711401C7; Thu, 21 Nov 2024 17:32:08 -0500 (EST) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-09.internal (MEProxy); Thu, 21 Nov 2024 17:32:08 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= cc:cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm3; t=1732228328; x=1732314728; bh=cl2Qj3fEXPpoY52Icy8asQiXAPj2ad2NCyOwXsQp6os=; b= OJhVlSVCcwZs9nnF1ijcNXcCZfjEKg8OgyTD4tR9uSrLl4+tpB758Wde7hGsvSIL AXaeU6sPhZsxr0eIV4cBP0FGEitlGT6+afnnzJPEB03XbSYmYIh2mFlWvQ4Bygjv 9dSzZi7nUEJV+8agQlz8FLLu+3fNcYD7daNTVjHzOUoJBDcEHrxi8V1Hm+xFq7kP uCKKuL9Qzglsv/wkAKZAS0Z0mtSqn6C+shTjWxSOszZXX7WE4LrY+lFxwKBM7Bas 2p2wyDChqwuCqwDXifZxITcJ0AS9kvJILT1SU/JawunNBc97EpXx649Ull3FP/DZ T/A3XfYlD1KrahlfFaP/qg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1732228328; x= 1732314728; bh=cl2Qj3fEXPpoY52Icy8asQiXAPj2ad2NCyOwXsQp6os=; b=K +OYx0liis7LWHGIgDTa+3C04Z+gS0scG0Kz53aknR5jIR7iAFP+EpoP9CqkvkZ22 MrzkjpeRpU4x4kYYJAS8rPrXHpZXm+Zr3+xPVTHRs+yQt6V6b8wMZGaz45MOd9aI PVx73KdXeFpjmZ8Vx5VO9gCQeeKB66X2OfWBAdSERaWn0AebkT1liWLptCcCy6VE F+SfZeZkUoNIl7UU3gpo9mhyZkASSNEJH/6QBEEWTCJdOW/6QGkIrGv/4dGqsahj qtmHh1tLiJ+hESO10h2sSPaB7SKQvTlTDL04FYNBhuDsJslDNlR9WJp279q2SJZv Ct8Un4SOb/NTxXfcscMsw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddrfeeigdduiedtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnh htshculddquddttddmnecujfgurhepkfffgggfuffvvehfhfgjtgfgsehtkeertddtvdej necuhfhrohhmpeetughrihgrnhcumfhlrghvvghruceorggurhhirghnrdhklhgrvhgvrh esrghklhgrvhgvrhdrtghomheqnecuggftrfgrthhtvghrnhepfeegfeeiuedtgffgteeg gfehkeejheetieeliefgteeikeejvdeiveeigfehvedtnecuvehluhhsthgvrhfuihiivg eptdenucfrrghrrghmpehmrghilhhfrhhomheprggurhhirghnrdhklhgrvhgvrhesrghk lhgrvhgvrhdrtghomhdpnhgspghrtghpthhtohepvddpmhhouggvpehsmhhtphhouhhtpd hrtghpthhtohepshgsohhulhgrnhhgvghrvdelsehgmhgrihhlrdgtohhmpdhrtghpthht ohepphhgshhqlhdqghgvnhgvrhgrlhesphhoshhtghhrvghsqhhlrdhorhhg X-ME-Proxy: Feedback-ID: i76984098:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 21 Nov 2024 17:32:07 -0500 (EST) Message-ID: <1270021b-c5b5-4ca8-b48d-7dfb163bb6f7@aklaver.com> Date: Thu, 21 Nov 2024 14:32:06 -0800 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Database stats ( pg_stat_database.stats_reset ) get reset on daily basis - why? To: Steeve Boulanger Cc: pgsql-general References: <6a157286-5948-48ac-bc50-7bb4e65ee5e5@aklaver.com> <38725031-5e80-46ee-b403-a92107b24c39@aklaver.com> <1e2db3f5-00f4-4ec2-800f-46136c2fad59@aklaver.com> Content-Language: en-US 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 11/21/24 13:31, Steeve Boulanger wrote: > > All I can think to do is look at the logs  around the stats_reset times > > for the databases and see if there is anything relevant. > > That was already done, but nothing relevant was found unfortunately. Unless it was not recognized as relevant. Since for the time being I am eliminating magic as the cause, something concrete is causing this and it should be leaving a trace. In your post you had this affecting 77 out of 157 databases in the cluster. 1) Do the 77 share some trait the other 80 don't. 2) Do the OS system logs reveal anything? 3) What was happening in the databases just prior to the time the stats reset? 4) Do you have external tools accessing these databases? 5) Is the cluster directly open to the world? > > -Steeve > > On Thu, Nov 21, 2024 at 3:12 PM Adrian Klaver > wrote: > > On 11/21/24 12:57, Steeve Boulanger wrote: > > > >  > Please reply to list also. > > > > My apologies - I thought I did a "Reply all", but apparently not. > I'm a > > little bit of a noob with email distrib lists. > > > >  > 1) What is log_min_error_statement set to? > > > >            name           | setting | pending_restart > > -------------------------+---------+----------------- > >   log_min_error_statement | error   | f > > > >  > 2) Did you reload the server when changing?: > > > > yes - pg_reload_conf() > > All I can think to do is look at the logs  around the stats_reset times > for the databases and see if there is anything relevant. > > > > > -Steeve > > > -- > Adrian Klaver > adrian.klaver@aklaver.com > -- Adrian Klaver adrian.klaver@aklaver.com