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 1tEEFk-0066ba-9V for pgsql-general@arkaria.postgresql.org; Thu, 21 Nov 2024 20:58: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 1tEEFi-001Saz-O7 for pgsql-general@arkaria.postgresql.org; Thu, 21 Nov 2024 20:58: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 1tEEFi-001Sar-Cl for pgsql-general@lists.postgresql.org; Thu, 21 Nov 2024 20:58:14 +0000 Received: from mail-oa1-x2a.google.com ([2001:4860:4864:20::2a]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1tEEFg-003AHa-3q for pgsql-general@postgresql.org; Thu, 21 Nov 2024 20:58:13 +0000 Received: by mail-oa1-x2a.google.com with SMTP id 586e51a60fabf-294ec8e1d8aso1201328fac.1 for ; Thu, 21 Nov 2024 12:58:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1732222690; x=1732827490; darn=postgresql.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=WHv8QcLljCB4NTi29T7Ect7NvMaDu5uBTmmGXo/UEe8=; b=AJPZ07qLGuNjjExKqEuw8ulZrauE2e25byL7Mfib+EahtRIBK6iGEU/jMYLO5NRniJ 0zjeZ6tVu1E8R04rX3fb9TRQhk8rRg3UFOzYpVEp9h9WXRIY4t64NC9REzDn3WCXpzZV FyV7K7816X2NyEXO2rUju0YH+TMSeIBgfLqJCtcbG00azc1y0G9zZ+mTNTD7yJEoPiMW TluLAHJgW4Sv3ICvq4bYL7s5/R6T79ZAS0g5penyMq5oIG5LtgIOSVAy04CKnxOF4szV yPNXZLpVUPcejd8BuhKdm1UNTVFlD4fAoYa4oOVkx0prFYJ7FutsMrw/AiQS+fKgb3eg u1Ow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1732222690; x=1732827490; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=WHv8QcLljCB4NTi29T7Ect7NvMaDu5uBTmmGXo/UEe8=; b=k1knmqvh9I2VGIGOG3ujJV/6k7jVEXDK2nhtAze75mHI2M2WqGhiUZOZuznGk1MGVj ohx8BEExT6331tXOAA+l0MCvCkkf9CRMtH0Ol+P4j3Lx+nqhBq6jkPcrR5DHh5gexdLO 8GfNgIFbFP1y6N/W5lKhMAaFaen32fA5E6ZtUUI38cjNZoiTq6brWU4VjHD/HYFYswXj sEkVXIgjJpU+8rUmXejeHKNYsjJAW5i+f3IhK/LKzIvoCquMR8g7SFC5lSmr72hrU6J4 vCagyLq2I1e9/8l4sJ3GUrJ4BXf6LLZcciieZV398T1cJqyfCMNnwKwMz3t4XHgeXGSz 2wZw== X-Gm-Message-State: AOJu0Ywi77ZkkVIrrQrNTDNP/RsQuczDYykLCfaJ36P1RLiplBnVTyaT nmZ6VtuBXsljCoFRdAL+Ch5/0jcmpWwNuZ5+7uEasTU7oP+s5YqVayhvjf67tMAgaBKt6hTmjxb YmiVcCME/l8mu9nsS/VObQAbQjq4= X-Gm-Gg: ASbGncuHW07thPE5axIjbBk1WQCg72J6T/cPCoNl7wn/Hg21xLVhSowBmWJLJhDUO1M 8YQwHZabsIcCmrpoP1K6GvznygUiO6wY= X-Google-Smtp-Source: AGHT+IEhnb8oaPvgCidXnZfbQoIgVOTRWiI9GxPP4VAcIFzNWCQToFmFUfah352jYqFvA4hFdr35/qUKMDXbZeQ4Kto= X-Received: by 2002:a05:6870:20b:b0:277:f826:edcc with SMTP id 586e51a60fabf-29720b1ab8emr443789fac.5.1732222690287; Thu, 21 Nov 2024 12:58:10 -0800 (PST) MIME-Version: 1.0 References: <6a157286-5948-48ac-bc50-7bb4e65ee5e5@aklaver.com> <38725031-5e80-46ee-b403-a92107b24c39@aklaver.com> In-Reply-To: <38725031-5e80-46ee-b403-a92107b24c39@aklaver.com> From: Steeve Boulanger Date: Thu, 21 Nov 2024 14:57:58 -0600 Message-ID: Subject: Re: Database stats ( pg_stat_database.stats_reset ) get reset on daily basis - why? To: Adrian Klaver Cc: pgsql-general Content-Type: multipart/alternative; boundary="0000000000002069c4062772866a" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --0000000000002069c4062772866a Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable > 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() -Steeve On Thu, Nov 21, 2024 at 2:49=E2=80=AFPM Adrian Klaver wrote: > 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 > > --0000000000002069c4062772866a Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

> Please reply to list also.

My = apologies - I thought I did a "Reply all", but apparently not. I&= #39;m a little bit of a noob with email distrib lists.=C2=A0

=
> 1) What is log_min_error_statement set to?

=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 name =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 | setting | pending_restart
-------------------------+-------= --+-----------------
=C2=A0log_min_error_statement | error =C2=A0 | f

> 2) Did you reload the server when changing?= :

yes - pg_reload_conf()

= -Steeve

On Thu, Nov 21, 2024 at 2:49=E2=80=AFPM Adrian Klaver <adrian.klaver@aklaver.= com> wrote:
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=C2=A0would=C2=A0not explain these daily stats reset that we a= re 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=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 | all

>
> -Steeve
>
>

--
Adrian Klaver
adrian.klave= r@aklaver.com

--0000000000002069c4062772866a--