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 1tEE6w-0065XK-Hb for pgsql-general@arkaria.postgresql.org; Thu, 21 Nov 2024 20:49:10 +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 1tEE6v-001DmQ-08 for pgsql-general@arkaria.postgresql.org; Thu, 21 Nov 2024 20:49:09 +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 1tEE6t-001DmI-9s for pgsql-general@lists.postgresql.org; Thu, 21 Nov 2024 20:49:08 +0000 Received: from fhigh-b1-smtp.messagingengine.com ([202.12.124.152]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tEE6p-003ACd-Bv for pgsql-general@postgresql.org; Thu, 21 Nov 2024 20:49:06 +0000 Received: from phl-compute-04.internal (phl-compute-04.phl.internal [10.202.2.44]) by mailfhigh.stl.internal (Postfix) with ESMTP id E507125401BB; Thu, 21 Nov 2024 15:49:00 -0500 (EST) Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-04.internal (MEProxy); Thu, 21 Nov 2024 15:49:01 -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=1732222140; x=1732308540; bh=ctZRRDkFRjMKvwcGbDizl57SvyytSFfBMyHOQgBvnN4=; b= aFPRWsMMyeAp+NaauYNJSOOilxs/EukRboF3bSSJjBAl79zT9MuPI+C5NKsERXKK kFei+B7v5nBoT4GinM3JavRcIYEqel7Alrv05NMeo10FW4FPQVNF2zpR11G/nY4G 19xVSnKhY4wByvW3rZ6HQtTSnYM4vHToiy0+cphvMLBPWjt3qSC3cfu0AC02PzAX UsJQzcIuYrR9YPIwQQCmOprAeZG5bIn0tSLX2pXeZYVT4lgtM+ohnppM4rRo5BoU PS2ectpjt63doqC66UF4vpeJ7s7FLlFEVvJjYJl+LzIVOirMx6D5RL9mCYfR79wp NHmGhQqKjUBJjjJZplrG2g== 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=1732222140; x= 1732308540; bh=ctZRRDkFRjMKvwcGbDizl57SvyytSFfBMyHOQgBvnN4=; b=2 PpRLTZOK5RfZMapZQJEzXH+97tyuqo+lHEMIdcfY9LSEw2OF2Gk7jXgGbmI/ShgH L2UflAVw4e8v/M8WWAOnefWwkNR9GIbvyYz188FuSaSOStiFL3Z1uzuAbdZQGKJb hq7Y8t0GGeFt+Azt4vPr6BgkWkxuTumslQD/+OL6LBmIlMcVLjnR+SnkxaEkKxwZ cq9ioPSkFkX7GbNq3rQqx7CVdOTrZ73EtSIJJVeuEEChmOmfLdZlKFDYMC4zjNNJ 9x+RWfI9D5n0/L6+zixJaXtNENostcrRCFmjzw7XU/HVHLKReeCQ9I8lsivHPAEQ xDvUT30gUojxq6bKDqAlw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddrfeeigddufeelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnh htshculddquddttddmnecujfgurhepkfffgggfuffvfhevhfgjtgfgsehtkeertddtvdej necuhfhrohhmpeetughrihgrnhcumfhlrghvvghruceorggurhhirghnrdhklhgrvhgvrh esrghklhgrvhgvrhdrtghomheqnecuggftrfgrthhtvghrnhepffevhefggfdtgfefvddt jeetteegtddtueejhfelieejheeitdejgefggeeiudfgnecuvehluhhsthgvrhfuihiivg eptdenucfrrghrrghmpehmrghilhhfrhhomheprggurhhirghnrdhklhgrvhgvrhesrghk lhgrvhgvrhdrtghomhdpnhgspghrtghpthhtohepvddpmhhouggvpehsmhhtphhouhhtpd hrtghpthhtohepshgsohhulhgrnhhgvghrvdelsehgmhgrihhlrdgtohhmpdhrtghpthht ohepphhgshhqlhdqghgvnhgvrhgrlhesphhoshhtghhrvghsqhhlrdhorhhg X-ME-Proxy: Feedback-ID: i76984098:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 21 Nov 2024 15:49:00 -0500 (EST) Message-ID: <38725031-5e80-46ee-b403-a92107b24c39@aklaver.com> Date: Thu, 21 Nov 2024 12:48:59 -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 References: <6a157286-5948-48ac-bc50-7bb4e65ee5e5@aklaver.com> Content-Language: en-US Cc: pgsql-general 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 12:34, Steeve Boulanger wrote: Please reply to list also. Ccing list. > Thanks Adrian for taking the time to respond. I will review the > documentation once more, just in case I missed anything. > > My apologies - I forgot to mention in my original post, that our last > cluster shutdown was over 15 days ago, thus an "unclean" > shutdown would not explain these daily stats reset that we are seeing. > It might also be relevant to mentioned Then something is resetting the statistics. 1) What is log_min_error_statement set to? 2) Did you reload the server when changing?: log_min_duration_statement | 0 log_statement | all > > -Steeve > > -- Adrian Klaver adrian.klaver@aklaver.com